#include<bits/stdc++.h>
#define ll long long int
using namespace std;
int main(){
	ll n,x,y;
	cin>>n;
	ll a=INT_MIN,b=INT_MAX,c=INT_MIN,d=INT_MAX;
	for(int i=0;i<n;i++){
		cin>>x>>y;
		a=max(a,x+y);
		b=min(b,x+y);
		c=max(c,x-y);
		d=min(d,x-y);
	}
	cout<<max ( (a-b), (c - d) )<<endl;
}