N = gets.to_i
ps = []
N.times{|i|
  x, y, h = gets.split.map(&:to_i)
  ps << {
    :x => x,
    :y => y,
    :h => h
  }
}
for x in 0..100
  for y in 0..100
    ps.each{|p|
      bh = (x - p[:x]).abs + (y - p[:y]).abs + p[:h]
      correct = true
      ps.each{|pp|
        next if pp == p
        eh = [bh - (x - pp[:x]).abs - (y - pp[:y]).abs, 0].max
        next if eh == pp[:h]
        correct = false
        break
      }
      if correct
        puts "#{x} #{y} #{bh}"
        exit
      end
    }
  end
end