#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, n, x, y;
  scanf("%d", &n);
  a = b = c = d = -0x80000000;
  for (int i = 0; i < n; ++i) {
    scanf("%d%d", &x, &y);
    a = max(a, x + y);
    b = max(b, x - y);
    c = max(c, y - x);
    d = max(d, -x - y);
  }
  printf("%d\n", a + b + c + d + 4);
  return 0;
}
