n = gets.to_i
ary = []
n.times do
  ary.push(gets.split.map(&:to_i))
end
ary.sort_by!{|a|a[2]}.reverse!

(0..100).each do |i|
  (0..100).each do |j|
    h = (i - ary[0][0]).abs + (j - ary[0][1]).abs + ary[0][2]
    ary.size.times do |k|
      break if !([h - (i - ary[k][0]).abs - (j - ary[k][1]).abs,0].max == ary[k][2])
      puts "#{i} #{j} #{h}"if k == n-1
    end
  end
end