#include using namespace std; int main() { int n; cin >> n; int x; if(n % 2 == 0) x = n / 2; else x = n; cout << x << endl; }