#include <iostream>
using namespace std;

int main() {
    int n;
    cin >> n;
    int x = ((n+1)*2+3)*4;
    cout << x << endl;
    return 0;
}
