#include <bits/stdc++.h>
using namespace std;

long long n, x, y, arr[200005], brr[200005], ans;

int main(){
	cin>>n;
	
	for(long long i=1; i<=n; i++){
		cin>>x>>y;
		
		arr[i]=x+y;
		brr[i]=x-y;
	}
	sort(arr+1, arr+n+1);
	sort(brr+1, brr+n+1);
	
	ans=max(abs(arr[n]-arr[1]), abs(brr[n]-brr[1]));
	cout<<ans<<endl;
}
