#include <bits/stdc++.h>
#define pb push_back
typedef long long ll;
using namespace std;
int main() {
	int n;
	cin >> n;
	int mx1 = -1e9, mx2 = -1e9;
	int mn1 = 2e9, mn2 = 2e9;
	while (n--) {
		int x, y;
		cin >> x >> y;
		mx1 = max(mx1, x + y);
		mx2 = max(mx2, x - y);
		mn1 = min(mn1, x + y);
		mn2 = min(mn2, x - y);
	}
	cout << max(mx1 - mn1, mx2 - mn2) << endl;
}