#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, res;
  cin >> n;
  res = n / 2;
  if (res == 0)
    cout << 1;
  else if (n % 2 == 0)
    cout << res;
  else
    cout << res + 1;
}
