#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, result, amari;
  int output;
  cin >> N;
  result = N / 2;
  amari = N % 2;
  if (amari = 0) {
    output = result;
  } else {
    output = result + 1;
  }
  cout << output;
}
