#include #include #include using namespace atcoder; using mint = modint998244353; using namespace std; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf32 1000000001 #define Inf64 1000000000000000001 bool check(vector> t,long long m){ set>> S; int cur = 0; rep(i,t.size()){ while(S.size()>0){ auto it = S.begin(); if((it->first) +m<= t[i].first)S.erase(it); else break; } long long l = t[i].second - m,r = t[i].second; auto it= S.begin(); while(it!=S.end()){ long long tl = (it->second).first; long long tr = (it->second).second; tl = max(tl,l); tr = min(tr,r); if(tl<=tr){ long long x = it->first; S.erase(it); S.emplace(x,make_pair(tl,tr)); break; } it++; } if(it==S.end()){ cur++; if(cur>=4)return false; S.emplace(t[i].first,make_pair(l,r)); } } return true; } int main(){ int n; cin>>n; vector t(4,vector>()); rep(i,n){ long long x,y; cin>>x>>y; t[0].emplace_back(x+y,x-y); t[1].emplace_back(-(x+y),x-y); t[2].emplace_back(x-y,x+y); t[3].emplace_back(-(x-y),x+y); } rep(i,4)sort(t[i].begin(),t[i].end()); long long ok = 2000000005,ng = -1; while(ok-ng>1LL){ long long mid = (ok+ng)/2; bool f = false; rep(i,4){ if(check(t[i],mid)){ f = true; break; } } if(f)ok = mid; else ng = mid; } cout<