#include<bits/stdc++.h> using namespace std; unsigned long long o; int main() { cin>>o; if(o>0) cout<<o*2-1; else cout<<0; return 0; }