#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b, j, c, m, sum, ar[200005], i;
  cin >> a;
  if (a & 1)
    cout << a / 2 + 1 << endl;
  else
    cout << a / 2 << endl;
}
