#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
using ll=long long;
using v=vector<int>;

int main() {
    int N;cin>>N;
    v x(N);
    v y(N);
    for (int i = 0; i < N; i++){
        int X,Y;cin>>X>>Y;
        x[i]=X+Y;
        y[i]=X-Y;
    }
    sort(x.begin(),x.end());
    sort(y.begin(),y.end());
    cout<<max(x[N-1]-x[0],y[N-1]-y[0])<<endl;
}