#include<bits/stdc++.h>
using namespace std;
#define ll long long 
 
 
int main() 
{
 
	int n; cin>>n;
	ll a[n], b[n];
	for(int i = 0; i<n; i++) 
	{
		int x, y; cin>>x>>y;
		a[i] = x+y;
		b[i] = x-y;
	}
	sort(a, a+n);
	sort(b, b+n);
	ll res = abs( a[n-1]-a[0] );
	res = max(res, abs( b[n-1]-b[0] ) );
	cout<<res<<endl;
}