#include #include #include #include #include #include #include using ll = long long; using namespace std; int main(void) { int N; cin >> N; if(N%2==0){ cout << N / 2 << endl; }else{ cout << N << endl; } return 0; }