#include <bits/stdc++.h>
using namespace std;
struct ab {
  int x, y;
} dian[100005], poin[8];
int main() {
  int n, a = 9999999, b = -9999999, c = 9999999, d = -9999999;
  scanf("%d", &n);
  int ans = 0;
  int i;
  int kmax = -9999999, kmin = 9999999;
  int pmax = -9999999, pmin = 9999999;
  for (i = 0; i < n; i++) {
    scanf("%d%d", &dian[i].x, &dian[i].y);
    if (dian[i].x < c) c = dian[i].x;
    if (dian[i].x > d) d = dian[i].x;
    if (dian[i].y < a) a = dian[i].y;
    if (dian[i].y > b) b = dian[i].y;
    if (dian[i].x + dian[i].y > kmax) kmax = dian[i].x + dian[i].y;
    if (dian[i].x + dian[i].y < kmin) kmin = dian[i].x + dian[i].y;
    if (dian[i].y - dian[i].x > pmax) pmax = dian[i].y - dian[i].x;
    if (dian[i].y - dian[i].x < pmin) pmin = dian[i].y - dian[i].x;
  }
  a--;
  b++;
  c--;
  d++;
  kmax++;
  kmin--;
  pmax++;
  pmin--;
  poin[0].y = b;
  poin[0].x = kmax - poin[0].y;
  poin[1].x = d;
  poin[1].y = kmax - poin[1].x;
  ans += poin[1].x - poin[0].x;
  poin[2].x = d;
  poin[2].y = pmin + poin[2].x;
  ans += poin[1].y - poin[2].y;
  poin[3].y = a;
  poin[3].x = poin[3].y - pmin;
  ans += poin[2].x - poin[3].x;
  poin[4].y = a;
  poin[4].x = kmin - poin[4].y;
  ans += poin[3].x - poin[4].x;
  poin[5].x = c;
  poin[5].y = kmin - poin[5].x;
  ans += poin[4].x - poin[5].x;
  poin[6].x = c;
  poin[6].y = pmax + poin[6].x;
  ans += poin[6].y - poin[5].y;
  poin[7].y = b;
  poin[7].x = poin[7].y - pmax;
  ans += poin[0].x - poin[6].x;
  printf("%d\n", ans);
}
