#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll = long long;

int N;

int main() {
  cin >> N;
  cout << (N % 2 ? 1: N / 2) << endl;
  return 0;
}