import scala.math._
import scala.collection.mutable.ListBuffer

object Main {
  val sc = new java.util.Scanner(System.in)
  val nMax = 10000
  val l = Array.ofDim[Short](nMax, 2)
  def main(args: Array[String]) {
    while(true) {
      val n = sc.nextInt()
      if(n == 0) return

      for(i <- 0 until n) {
        l(i)(0) = sc.nextShort()
        l(i)(1) = (sc.nextShort() + sc.nextShort()).toShort
      }
      println(l.take(n).maxBy(_(1)).mkString(" "))
    }

  }
}