#include<bits/stdc++.h>
using namespace std;
const int N=2e5+10;
typedef long long ll;
ll s1[N],s2[N];
int n;
int main(){
	scanf("%d",&n);
	for(int i=1,x,y;i<=n;i++){
		scanf("%d%d",&x,&y);
		s1[i]=x+y;
		s2[i]=x-y;
	}
	sort(s1+1,s1+1+n);
	sort(s2+1,s2+1+n);
	printf("%lld\n",max(s1[n]-s1[1],s2[n]-s2[1]));
	return 0;
}