#include #include #include using namespace std; using i64 = long long; #define rep(i,n) for(int i=0; i<(int)(n); i++) int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int N; cin >> N; vector X(N); vector Y(N); rep(i,N){ int x,y; cin >> x >> y; X[i] = x+y; Y[i] = x-y; } i64 minX = X[0], maxX = X[0]; i64 minY = Y[0], maxY = Y[0]; rep(i, N){ minX = min(minX, X[i]); maxX = max(maxX, X[i]); minY = min(minY, Y[i]); maxY = max(maxY, Y[i]); } for(auto& x : X) x -= minX; maxX -= minX; for(auto& y : Y) y -= minY; maxY -= minY; i64 ans = 1001001001001; rep(t,2){ for(auto& x : X) x = maxX - x; i64 tmp = 0; rep(i,N){ i64 cost1 = max(X[i], Y[i]); i64 cost2 = max(maxX - X[i], maxY - Y[i]); tmp = max(tmp, min(cost1,cost2)); } ans = min(ans, tmp); } ans = (ans + 1) / 2; cout << ans << '\n'; return 0; }