#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main()
{
    int n;
    cin >> n;
    vector<ll> x(n);
    vector<ll> y(n);
    for(int i = 0; i < n; i++)
    {
        ll 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;
}
    

