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

t = Thread.new do
  while n = gets.to_i
    break if n == 0
    v = n.times.map do
      a = gets.split.map{|n| n.to_i}
      [-a[1] - a[2], a[0]]
    end
    r = v.sort[0]
    puts "#{r[1]} #{-r[0]}"
  end
end

t.join