inputs = STDIN.readlines.map{|line|line.strip.split()}
line = inputs.shift

n = line[0].to_i
points = []
n.times do |l_n|
    input = inputs.shift
    points.push({
        :x => input[0].to_i,
        :y => input[1].to_i,
        :h => input[2].to_i,
    })
end

101.times do |y|
    101.times do |x|
        h = points[0][:h] + (x - points[0][:x]).abs + (y - points[0][:y]).abs
        _h = h
        points.each do |point|
            _h = point[:h] + (x - point[:x]).abs + (y - point[:y]).abs
            if h != _h && point[:h] > 0 then
                break
            end
        end
        if h == _h then
            puts([x, y, h].join(" "))
            exit
        end
    end
end