#include<iostream>
#include<algorithm>
using namespace std;
 
int main()
{
  int i,j,k,n,d1[200000],d2[200000],x,y;
  cin >> n;
  for(int i=0,x,y; i<n; i++)
  {
    cin>>x>>y;
	d1[i]=(x+y);
    d2[i]=(x-y);
  }
  sort(d1,d1+n);
  sort(d2,d2+n);
  cout<<max(d1[n-1]-d1[0],d2[n-1]-d2[0])<<endl;
}