#include<bits/stdc++.h>
using namespace std;
using ll=int64_t;
int main(){
  int n,i,x,y;
  cin>>n;
  vector<int> z(n),w(n);
  for(i=0;i<n;i++){
    cin>>x>>y;
    z[i]=x+y;
    w[i]=x-y;
  }
  sort(z.begin(),z.end());
  sort(w.begin(),w.end());
  cout<<max(z[n-1]-z[0],w[n-1]-w[0])<<endl;
}