#include <bits/stdc++.h>
typedef long long ll;
using namespace std;

int main() {
  int N; cin>>N;
  vector<ll> z(N), w(N);
  for(int i=0; i<N; ++i) {
    ll x, y; cin>>x>>y;
    z[i]=x+y; w[i]=x-y;
  }

  ll ans1 = (*max_element(z.begin(),z.end())-*min_element(z.begin(),z.end()));
  ll ans2 = (*max_element(w.begin(),w.end())-*min_element(w.begin(),w.end()));
  ll ans = max(ans1,ans2);
  cout << ans << endl;
}
