#include<bits/stdc++.h> using namespace std; int main(){ long long int N; cin >> N; cout << N * 2 - 1 << endl; }