#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  long long minx = numeric_limits<long long>::max(),
            miny = numeric_limits<long long>::max(),
            maxx = numeric_limits<long long>::min(),
            maxy = numeric_limits<long long>::min();
  long long minb1 = minx, minb2 = minx, maxb1 = maxx, maxb2 = maxx;
  for (int i = 0; i < n; ++i) {
    long long x, y;
    cin >> x >> y;
    minx = min(x, minx);
    maxx = max(x, maxx);
    miny = min(y, miny);
    maxy = max(y, maxy);
    minb1 = min(y - x, minb1);
    minb2 = min(y + x, minb2);
    maxb1 = max(y - x, maxb1);
    maxb2 = max(y + x, maxb2);
  }
  --minb1;
  --minb2;
  ++maxb1;
  ++maxb2;
  ++maxy;
  ++maxx;
  --miny;
  --minx;
  long long y1 = minx + maxb1, x2 = maxy - maxb1;
  long long x3 = maxb2 - maxy, y4 = maxb2 - maxx;
  long long y5 = maxx + minb1, x6 = miny - minb1;
  long long x7 = minb2 - miny, y8 = minb2 - minx;
  long long r = (maxy - y1) + (x3 - x2) + (maxy - y4) + (y4 - y5) +
                (y5 - miny) + (x6 - x7) + (y8 - miny) + (y1 - y8);
  cout << r << endl;
}
