#include <iostream>
#include <cstdlib>
#include <algorithm>
using namespace std;

int main() {
	int n;
	cin>>n;
	long long arr1[n];
	long long arr2[n];
	for(int i=0;i<n;i++){
	    int t1,t2;
	    cin>>t1>>t2;
	    arr1[i] = t1+t2;
	    arr2[i] = t1-t2;
	}
	sort(arr1,arr1+n);
	sort(arr2,arr2+n);
	int op1 = arr1[n-1]-arr1[0];
	int op2 = arr2[n-1]-arr2[0];
	cout<<max(op1,op2)<<endl;
	return 0;
}
