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