input=__import__('sys').stdin.readline

def getdist(a,b):return abs(a[0]-b[0])+abs(a[1]-b[1])

n=int(eval(input()))

s=[]

for _ in range(n):s.append([*list(map(int,input().split()))])

ans=0

sx=sorted(s)

sy=sorted(s,key=lambda x:x[1])

ans=max(ans,getdist(sx[-1],sx[-2]))

ans=max(ans,getdist(sx[0],sx[1]))

ans=max(ans,getdist(sy[-1],sy[-2]))

ans=max(ans,getdist(sy[0],sy[1]))

def ff1(x):return x[0]+x[1]

def ff2(x):return x[0]-x[1]

f1=sorted(s,key=ff1)

f2=sorted(s,key=ff2)

ans=max(ans,getdist(f1[0],f1[-1]))

ans=max(ans,getdist(f1[0],f1[1]))

ans=max(ans,getdist(f1[-1],f1[-2]))

ans=max(ans,getdist(f2[0],f2[-1]))

ans=max(ans,getdist(f2[0],f2[1]))

ans=max(ans,getdist(f2[-1],f2[-2]))

def ff1(x):return abs(x[0]+x[1])

def ff2(x):return abs(x[0]-x[1])

f1=sorted(s,key=ff1)

f2=sorted(s,key=ff2)

ans=max(ans,getdist(f1[0],f1[-1]))

ans=max(ans,getdist(f1[0],f1[1]))

ans=max(ans,getdist(f1[-1],f1[-2]))

ans=max(ans,getdist(f2[0],f2[-1]))

ans=max(ans,getdist(f2[0],f2[1]))

ans=max(ans,getdist(f2[-1],f2[-2]))

print(ans)
input=__import__('sys').stdin.readline

def getdist(a,b):return abs(a[0]-b[0])+abs(a[1]-b[1])

n=int(eval(input()))

s=[]

for _ in range(n):s.append([*list(map(int,input().split()))])

ans=0

def ff1(x):return x[0]+x[1]

def ff2(x):return x[0]-x[1]

f1=sorted(s,key=ff1)

f2=sorted(s,key=ff2)

ans=max(ans,getdist(f1[0],f1[-1]))

ans=max(ans,getdist(f1[0],f1[1]))

ans=max(ans,getdist(f1[-1],f1[-2]))

ans=max(ans,getdist(f2[0],f2[-1]))

ans=max(ans,getdist(f2[0],f2[1]))

ans=max(ans,getdist(f2[-1],f2[-2]))

print(ans)
input = __import__("sys").stdin.readline


def getdist(a, b):
    return abs(a[0] - b[0]) + abs(a[1] - b[1])


n = int(eval(input()))
s = []
for _ in range(n):
    s.append([*list(map(int, input().split()))])
ans = 0
sx = sorted(s)
sy = sorted(s, key=lambda x: x[1])
ans = max(ans, getdist(sx[-1], sx[-2]))
ans = max(ans, getdist(sx[0], sx[1]))
ans = max(ans, getdist(sy[-1], sy[-2]))
ans = max(ans, getdist(sy[0], sy[1]))


def ff1(x):
    return x[0] + x[1]


def ff2(x):
    return x[0] - x[1]


f1 = sorted(s, key=ff1)
f2 = sorted(s, key=ff2)
ans = max(ans, getdist(f1[0], f1[-1]))
ans = max(ans, getdist(f1[0], f1[1]))
ans = max(ans, getdist(f1[-1], f1[-2]))
ans = max(ans, getdist(f2[0], f2[-1]))
ans = max(ans, getdist(f2[0], f2[1]))
ans = max(ans, getdist(f2[-1], f2[-2]))


def ff1(x):
    return abs(x[0] + x[1])


def ff2(x):
    return abs(x[0] - x[1])


f1 = sorted(s, key=ff1)
f2 = sorted(s, key=ff2)
ans = max(ans, getdist(f1[0], f1[-1]))
ans = max(ans, getdist(f1[0], f1[1]))
ans = max(ans, getdist(f1[-1], f1[-2]))
ans = max(ans, getdist(f2[0], f2[-1]))
ans = max(ans, getdist(f2[0], f2[1]))
ans = max(ans, getdist(f2[-1], f2[-2]))
print(ans)

input = __import__("sys").stdin.readline


def getdist(a, b):
    return abs(a[0] - b[0]) + abs(a[1] - b[1])


n = int(eval(input()))
s = []
for _ in range(n):
    s.append([*list(map(int, input().split()))])
ans = 0


def ff1(x):
    return x[0] + x[1]


def ff2(x):
    return x[0] - x[1]


f1 = sorted(s, key=ff1)
f2 = sorted(s, key=ff2)
ans = max(ans, getdist(f1[0], f1[-1]))
ans = max(ans, getdist(f1[0], f1[1]))
ans = max(ans, getdist(f1[-1], f1[-2]))
ans = max(ans, getdist(f2[0], f2[-1]))
ans = max(ans, getdist(f2[0], f2[1]))
ans = max(ans, getdist(f2[-1], f2[-2]))
print(ans)

-sx = sorted(s) -sy = sorted(s, key=lambda x: x[1]) -ans = max(ans, getdist(sx[-1], sx[-2])) -ans = max(ans, getdist(sx[0], sx[1])) -ans = max(ans, getdist(sy[-1], sy[-2])) -ans = max(ans, getdist(sy[0], sy[1])) - - -def ff1(x): -    return abs(x[0] + x[1]) - - -def ff2(x): -    return abs(x[0] - x[1]) - - -f1 = sorted(s, key=ff1) -f2 = sorted(s, key=ff2) -ans = max(ans, getdist(f1[0], f1[-1])) -ans = max(ans, getdist(f1[0], f1[1])) -ans = max(ans, getdist(f1[-1], f1[-2])) -ans = max(ans, getdist(f2[0], f2[-1])) -ans = max(ans, getdist(f2[0], f2[1])) -ans = max(ans, getdist(f2[-1], f2[-2]))