- while 1:
-
try:
-
n=input()
-
except:
-
break
-
tx,ty=[],[]
-
for i in range(int(n)):
-
x,y=map(int,input().split())
-
tx.append(x)
-
ty.append(y)
-
mx=max(max(tx)-min(tx),max(ty)-min(ty))**2
-
print(mx)
try:
n=input()
except:
break
tx,ty=[],[]
for i in range(int(n)):
x,y=map(int,input().split())
tx.append(x)
ty.append(y)
mx=max(max(tx)-min(tx),max(ty)-min(ty))**2
print(mx)