// yukicoder No.1128 #include using namespace std; int main() { int n; cin >> n; if (n % 2 == 1) cout << n << "\n"; else cout << n+1 << "\n"; return 0; }