#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a[100001], b, c, m, n, p = 0, t = 0, x, y, z;
  cin >> n;
  if (n % 2 == 1) {
    cout << n / 2 + 1;
  } else if (n % 2 == 0) {
    cout << n / 2;
  }
  return 0;
}
