N = int(eval(input()))

x, y, h = [0]*N, [0]*N, [0]*N

for i in range(N):

    x[i], y[i], h[i] = list(map(int, input().split()))



for cx in range(0, 101):

    for cy in range(0, 101):

        for i in range(N):

            if h[i] > 0:

                H = h[i] + abs(x[i]-cx)+abs(y[i]-cy)

        

        for i in range(N):

            if h[i] != max(0, H-abs(x[i]-cx)-abs(y[i]-cy)):

                break

        else:

            print((cx, cy, H))

            exit()
n = int(eval(input()))



xs = []

ys = []

hs = []

for i in range(n):

  x,y,h = list(map(int,input().split()))

  xs.append(x)

  ys.append(y)

  hs.append(h)



for x in range(101):

  for y in range(101):

    for i in range(n):

      if hs[i] >0:

        H = hs[i] + abs(xs[i]-x)+abs(ys[i]-y)

    for i in range(n):

      if hs[i] != max(0, H-abs(xs[i]-x)-abs(ys[i]-y)):

        break

    else:

      print((x,y,H))

      exit()
N = int(eval(input()))
x, y, h = [0] * N, [0] * N, [0] * N
for i in range(N):
    x[i], y[i], h[i] = list(map(int, input().split()))
for cx in range(0, 101):
    for cy in range(0, 101):
        for i in range(N):
            if h[i] > 0:
                H = h[i] + abs(x[i] - cx) + abs(y[i] - cy)
        for i in range(N):
            if h[i] != max(0, H - abs(x[i] - cx) - abs(y[i] - cy)):
                break
        else:
            print((cx, cy, H))
            exit()

n = int(eval(input()))
xs = []
ys = []
hs = []
for i in range(n):
    x, y, h = list(map(int, input().split()))
    xs.append(x)
    ys.append(y)
    hs.append(h)
for x in range(101):
    for y in range(101):
        for i in range(n):
            if hs[i] > 0:
                H = hs[i] + abs(xs[i] - x) + abs(ys[i] - y)
        for i in range(n):
            if hs[i] != max(0, H - abs(xs[i] - x) - abs(ys[i] - y)):
                break
        else:
            print((x, y, H))
            exit()

-N = int(eval(input())) -x, y, h = [0] * N, [0] * N, [0] * N -for i in range(N): -    x[i], y[i], h[i] = list(map(int, input().split())) -for cx in range(0, 101): -    for cy in range(0, 101): -        for i in range(N): -            if h[i] > 0: -                H = h[i] + abs(x[i] - cx) + abs(y[i] - cy) -        for i in range(N): -            if h[i] != max(0, H - abs(x[i] - cx) - abs(y[i] - cy)): +n = int(eval(input())) +xs = [] +ys = [] +hs = [] +for i in range(n): +    x, y, h = list(map(int, input().split())) +    xs.append(x) +    ys.append(y) +    hs.append(h) +for x in range(101): +    for y in range(101): +        for i in range(n): +            if hs[i] > 0: +                H = hs[i] + abs(xs[i] - x) + abs(ys[i] - y) +        for i in range(n): +            if hs[i] != max(0, H - abs(xs[i] - x) - abs(ys[i] - y)): -            print((cx, cy, H)) +            print((x, y, H))