#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:256000000")
using namespace std;
constexpr int MOD = 1000 * 1000 * 1000 + 7;
int n;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> n;
  if (n % 2 == 0) {
    cout << (n / 2) << endl;
  } else
    cout << (n / 2 + 1) << endl;
  return 0;
}
