#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  int n;
  cin >> n;
  int ans = 0;
  if ((n % 2 != 0)) {
    ans = (n / 2) + 1;
    cout << ans << endl;
  } else
    cout << (ans = n / 2) << endl;
  return 0;
}
