#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9 + 10;
int main() {
  ios::sync_with_stdio(0), cin.tie(0);
  int maxx = -inf, maxy = -inf;
  int minx = inf, miny = inf;
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    int a = x + y;
    int b = x - y;
    minx = min(minx, a);
    maxx = max(maxx, a);
    miny = min(miny, b);
    maxy = max(maxy, b);
  }
  int ans = maxx - minx + maxy - miny;
  cout << ans + 4 << '\n';
}
