N = int(eval(input()))

xy = [tuple(map(int, input().split())) for _ in range(N)]

xy.sort(reverse=True)



ans = 0

M = xy[0][0] + xy[0][1]

m = xy[0][0] - xy[0][1]

for x, y in xy[1:]:

    ans = max(ans, M-x-y, m-x+y)

    M = max(M, x+y)

    m = max(m, x-y)



print(ans)
N = int(eval(input()))

xy = [tuple(map(int, input().split())) for _ in range(N)]

z = []; w = []

for x, y in xy:

    z.append(x + y)

    w.append(x - y)



print((max(max(z)-min(z), max(w)-min(w))))
N = int(eval(input()))
xy = [tuple(map(int, input().split())) for _ in range(N)]
xy.sort(reverse=True)
ans = 0
M = xy[0][0] + xy[0][1]
m = xy[0][0] - xy[0][1]
for x, y in xy[1:]:
    ans = max(ans, M - x - y, m - x + y)
    M = max(M, x + y)
    m = max(m, x - y)
print(ans)

N = int(eval(input()))
xy = [tuple(map(int, input().split())) for _ in range(N)]
z = []
w = []
for x, y in xy:
    z.append(x + y)
    w.append(x - y)
print((max(max(z) - min(z), max(w) - min(w))))

-xy.sort(reverse=True) -ans = 0 -M = xy[0][0] + xy[0][1] -m = xy[0][0] - xy[0][1] -for x, y in xy[1:]: -    ans = max(ans, M - x - y, m - x + y) -    M = max(M, x + y) -    m = max(m, x - y) -print(ans) +z = [] +w = [] +for x, y in xy: +    z.append(x + y) +    w.append(x - y) +print((max(max(z) - min(z), max(w) - min(w))))