#include int main() { std::ios::sync_with_stdio(false); std::cin.tie(0); long long int n; std::cin >> n; std::cout << ((n%2==1) ? n : n/2) << "\n"; return 0; }