#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;

int main() {
	int N;
	cin >> N;
	set<ll> Z, W;
	for(int i = 0; i < N; i++){
		ll x,y;
		cin >> x >> y;
		Z.insert(x-y);
		W.insert(x+y);
	}
	ll z,w;
	z = *Z.rbegin() - *Z.begin();
	w = *W.rbegin() - *W.begin();

	ll mx = (z < w ? w : z);
	cout << mx << endl;
	return(0);
}
