import sys

input = sys.stdin.readline



N = int(eval(input()))

points = [0] * N

rx = []

ry = []

for i in range(N):

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

    rx.append(x - y)

    ry.append(x + y)

xm = max(rx)

xn = min(rx)

ym = max(ry)

yn = min(ry)

ans = max(max(xm - x, x - xn, ym - y, y - yn) for x, y in zip(rx, ry))

print(ans)





import sys

input = sys.stdin.readline



N = int(eval(input()))

points = [0] * N

rx = []

ry = []

for i in range(N):

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

    rx.append(x - y)

    ry.append(x + y)

print((max(max(rx) - min(rx), max(ry) - min(ry))))
import sys

input = sys.stdin.readline
N = int(eval(input()))
points = [0] * N
rx = []
ry = []
for i in range(N):
    x, y = list(map(int, input().split()))
    rx.append(x - y)
    ry.append(x + y)
xm = max(rx)
xn = min(rx)
ym = max(ry)
yn = min(ry)
ans = max(max(xm - x, x - xn, ym - y, y - yn) for x, y in zip(rx, ry))
print(ans)

import sys

input = sys.stdin.readline
N = int(eval(input()))
points = [0] * N
rx = []
ry = []
for i in range(N):
    x, y = list(map(int, input().split()))
    rx.append(x - y)
    ry.append(x + y)
print((max(max(rx) - min(rx), max(ry) - min(ry))))

-xm = max(rx) -xn = min(rx) -ym = max(ry) -yn = min(ry) -ans = max(max(xm - x, x - xn, ym - y, y - yn) for x, y in zip(rx, ry)) -print(ans) +print((max(max(rx) - min(rx), max(ry) - min(ry))))