#include "bits/stdc++.h" using namespace std; int main() { int X; cin >> X; if (X % 2 == 0) cout << X / 2 << endl; else cout << X << endl; }