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