#include <bits/stdc++.h>

using namespace std;
using i64 = int64_t;

int main(){
   int n;
  cin >> n;
  vector<i64> a, b;
  for(int i=0;i<n;i++){
   	i64 x, y;
    cin >> x >> y;
    a.emplace_back(x+y);
    b.emplace_back(x-y);
  }
  sort(a.begin(),a.end());
  sort(b.begin(),b.end());
  cout << max(abs(a[0]-a[n-1]), abs(b[0]-b[n-1])) << endl;
}
