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

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

t.join