n = gets.to_i
x, y, h = [], [], []
n.times{|i| x[i], y[i], h[i] = gets.split.map(&:to_i)}

t = (0...n).first{|i| h[i] != 0}
 
[*0..100].product([*0..100]) do |cx, cy|
  ch = h[t] + (x[t] - cx).abs + (y[t] - cy).abs
  puts [cx, cy, ch].join(' ') if (0...n).all?{|i| [0, ch - (x[i] - cx).abs - (y[i] - cy).abs].max == h[i]}
end