#include using namespace std; using ll = long long; constexpr ll inf = 1ll << 60; int main(){ ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; array tmp = {-inf, inf, -inf, inf}; for(int i = 0; i < n; i++){ ll x, y; cin >> x >> y; tmp[0] = max(tmp[0], x + y); tmp[1] = min(tmp[1], x + y); tmp[2] = max(tmp[2], x - y); tmp[3] = min(tmp[3], x - y); } cout << max(tmp[0] - tmp[1], tmp[2] - tmp[3]) / 2 << '\n'; }