#include using namespace std; typedef long long ll; int main(void) { cin.tie(0); ios::sync_with_stdio(false); int n; cin >> n; if (n % 2 == 0) { cout << n/2 << "\n"; } else { cout << n << "\n"; } return 0; }