#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int n;
cin>>n;
int a[n];
int b[n];
for(int i=0; i<n; i++)
cin>>a[i]>>b[i];
sort(a, a+n);
sort(b, b+n);
cout<<2*(a[n-1]-a[0]+b[n-1]-b[0]);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8YWxnb3JpdGhtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CmludCBuOwpjaW4+Pm47CmludCBhW25dOwppbnQgYltuXTsKZm9yKGludCBpPTA7IGk8bjsgaSsrKQpjaW4+PmFbaV0+PmJbaV07CnNvcnQoYSwgYStuKTsKc29ydChiLCBiK24pOwpjb3V0PDwyKihhW24tMV0tYVswXStiW24tMV0tYlswXSk7CglyZXR1cm4gMDsKfQ==