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