// Enjoy your stay.

#include <bits/stdc++.h>

#define EPS 1e-9
#define INF 1070000000LL
#define MOD 1000000007LL
#define fir first
#define foreach(it,X) for(auto it=(X).begin();it!=(X).end();it++)
#define ite iterator
#define mp make_pair
#define mt make_tuple
#define rep(i,n) rep2(i,0,n)
#define rep2(i,m,n) for(int i=m;i<(n);i++)
#define pb push_back
#define sec second
#define sz(x) ((int)(x).size())

using namespace std;

typedef istringstream iss;
typedef long long ll;
typedef pair<ll,ll> pi;
typedef stringstream sst;
typedef vector<ll> vi;

int N,X[100010],Y[100010];

int main(){
	cin.tie(0);
	ios_base::sync_with_stdio(0);
	
	cin>>N;
	int x,y;
	rep(i,N){
		cin>>x>>y;
		X[i]=x-y;
		Y[i]=x+y;
	}
	int loX=*min_element(X,X+N);
	int hiX=*max_element(X,X+N);
	int loY=*min_element(Y,Y+N);
	int hiY=*max_element(Y,Y+N);
	int ans1=0,ans2=0;
	rep(i,N){
		ans1=max(ans1,min(max(X[i]-loX,Y[i]-loY),max(hiX-X[i],hiY-Y[i])));
		ans2=max(ans2,min(max(X[i]-loX,hiY-Y[i]),max(hiX-X[i],Y[i]-loY)));
	}
	cout<<min(ans1,ans2)<<endl;
}