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

int64_t MOD = 1000000007;
double PI = 3.141592653589793;

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