#include int main(void){ using namespace std; long x; cin >> x; if(x%2==1) cout << x; if(x%2==0) cout << x-1; if(x==0) cout << x; }