n, *XY = list(map(int, open(0).read().split()))

X, Y = XY[::2], XY[1::2]

A = [x+y for x, y in zip(X, Y)]

B = [x-y for x, y in zip(X, Y)]

A.sort()

B.sort()

print((max(A[-1] - A[0], B[-1] - B[0])))
n, *XY = list(map(int, open(0).read().split()))

X, Y = XY[::2], XY[1::2]

A = [x+y for x, y in zip(X, Y)]

B = [x-y for x, y in zip(X, Y)]

print((max(max(A) - min(A), max(B) - min(B))))
n, *XY = list(map(int, open(0).read().split()))
X, Y = XY[::2], XY[1::2]
A = [x + y for x, y in zip(X, Y)]
B = [x - y for x, y in zip(X, Y)]
A.sort()
B.sort()
print((max(A[-1] - A[0], B[-1] - B[0])))

n, *XY = list(map(int, open(0).read().split()))
X, Y = XY[::2], XY[1::2]
A = [x + y for x, y in zip(X, Y)]
B = [x - y for x, y in zip(X, Y)]
print((max(max(A) - min(A), max(B) - min(B))))

-A.sort() -B.sort() -print((max(A[-1] - A[0], B[-1] - B[0]))) +print((max(max(A) - min(A), max(B) - min(B))))