import scala.io.StdIn.{readInt,readLine}

object Main extends App {
  println {
    Iterator.continually(readInt).takeWhile(_ != 0).map { n =>
      var max = (0,0)
      for(i<-1 to n) {
        val e = readLine.split(" ").map(_.toInt)
        val sum = e(1)+e(2)
        if(sum > max._2)
          max = (e(0),sum)
      }
      max._1 + " " + max._2
    }.mkString("\n")
  }
}