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