#include <bits/stdc++.h>
int max(int a, int b) { return a > b ? a : b; }
int main() {
  int n, a, b, c, d, x, y;
  a = b = c = d = -99999999;
  scanf("%d", &n);
  while (n--) {
    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;
}
