def abs(x1,x2):

    if x1>x2:

        return x1-x2

    else:

        return x2-x1

    

n=int(eval(input()))

x=[]

y=[]

h=[]



for i in range(n):

    xi,yi,hi=list(map(int,input().split()))

    x.append(xi)

    y.append(yi)

    h.append(hi)



hmax=h[0]

xhmax=x[0]

yhmax=y[0]

ihmax=0



for i in range(n):

    if hmax<h[i]:

        hmax=h[i]

        xhmax=x[i]

        yhmax=y[i]

        ihmax=i

    

for cx in range(101):

    for cy in range(101):

        hh=hmax+abs(xhmax,cx)+abs(yhmax,cy)

        yesno="yes"

        for i in range(n):

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

                yesno="no"

                break

        if yesno=="yes":

            print((cx,cy,hh))
def abs(x1,x2):

    if x1>x2:

        return x1-x2

    else:

        return x2-x1

    

n=int(eval(input()))

x=[]

y=[]

h=[]



for i in range(n):

    xi,yi,hi=list(map(int,input().split()))

    x.append(xi)

    y.append(yi)

    h.append(hi)



hmax=h[0]

xhmax=x[0]

yhmax=y[0]

ihmax=0



for i in range(n):

    if hmax<h[i]:

        hmax=h[i]

        xhmax=x[i]

        yhmax=y[i]

        ihmax=i

    

for cx in range(101):

    for cy in range(101):

        hh=hmax+abs(xhmax,cx)+abs(yhmax,cy)

        yesno="yes"

        for i in range(n):

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

                yesno="no"

                break

        if yesno=="yes":

            print((cx,cy,hh))

            break

    if yesno=="yes":

        break
def abs(x1, x2):
    if x1 > x2:
        return x1 - x2
    else:
        return x2 - x1


n = int(eval(input()))
x = []
y = []
h = []
for i in range(n):
    xi, yi, hi = list(map(int, input().split()))
    x.append(xi)
    y.append(yi)
    h.append(hi)
hmax = h[0]
xhmax = x[0]
yhmax = y[0]
ihmax = 0
for i in range(n):
    if hmax < h[i]:
        hmax = h[i]
        xhmax = x[i]
        yhmax = y[i]
        ihmax = i
for cx in range(101):
    for cy in range(101):
        hh = hmax + abs(xhmax, cx) + abs(yhmax, cy)
        yesno = "yes"
        for i in range(n):
            if h[i] != max(hh - abs(x[i], cx) - abs(y[i], cy), 0):
                yesno = "no"
                break
        if yesno == "yes":
            print((cx, cy, hh))

def abs(x1, x2):
    if x1 > x2:
        return x1 - x2
    else:
        return x2 - x1


n = int(eval(input()))
x = []
y = []
h = []
for i in range(n):
    xi, yi, hi = list(map(int, input().split()))
    x.append(xi)
    y.append(yi)
    h.append(hi)
hmax = h[0]
xhmax = x[0]
yhmax = y[0]
ihmax = 0
for i in range(n):
    if hmax < h[i]:
        hmax = h[i]
        xhmax = x[i]
        yhmax = y[i]
        ihmax = i
for cx in range(101):
    for cy in range(101):
        hh = hmax + abs(xhmax, cx) + abs(yhmax, cy)
        yesno = "yes"
        for i in range(n):
            if h[i] != max(hh - abs(x[i], cx) - abs(y[i], cy), 0):
                yesno = "no"
                break
        if yesno == "yes":
            print((cx, cy, hh))
            break
    if yesno == "yes":
        break

+            break +    if yesno == "yes": +        break