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

int n;
vector<int> v1,v2;

int main(){
	scanf("%d",&n);
	for(int i=1;i<=n;i++){
		int x,y;
		scanf("%d%d",&x,&y);
		v1.push_back(x+y);
		v2.push_back(x-y);
	}
	sort(v1.begin(),v1.end());
	sort(v2.begin(),v2.end());
	printf("%d\n",max(v1[v1.size()-1]-v1[0],v2[v2.size()-1]-v2[0]));
	return 0;
}