#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  int N;
  cin >> N;
  int a;
  if (a % 2 == 0)
    a = N / 2;
  else
    a = N / 2 + 1;
  cout << a;
}
