#include <bits/stdc++.h>
using namespace std;
int main() {
  int ans, a, b, c, d;
  a = b = c = d = -1000000000;
  int n, x, y;
  scanf("%d", &n);
  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);
  }
  cout << a + b + c + d + 4;
}
