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

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

      val l = ListBuffer[(Int, Int)]()
      for(_ <- 1 to n) {
        val p, d1, d2 = sc.nextInt()
        l += ((d1+d2, p))
      }
      val ans = l.toSeq.sorted.last
      println(ans._2.toString + " " + ans._1.toString)
    }

  }
}