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