#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int MOD = 1000000007;
const int MAX = 200000;
int main() {
  int n;
  cin >> n;
  cout << (n % 2 == 0 ? n / 2 : 2 / n + 1) << endl;
  return 0;
}
