#! /usr/bin/env ruby
# coding: utf-8

while n = gets.to_i
  break if n == 0
  maxl = -1
  ans = -1
  n.times do
    v = gets.split.map{|i| i.to_i}
    if maxl < v[1] + v[2]
      maxl = v[1] + v[2]
      ans = v[0]
    end
  end
  puts "#{ans} #{maxl}"
end