#include <iostream> using namespace std; int main() { int n; cin >> n; int segments = 2 * n + 1; cout << segments << endl; return 0; }