#include <vector>
#include <fstream>
using namespace std;

int main() {
  int n, div, rem;
  cin >> n;

  div = n / 2;
  rem = n % 2;

  if (rem == 1) {
    div = div + 1;
  }
  cout << div;
  return 0;
}