#include <bits/stdc++.h>
using namespace std;
int next(int a) { return a < 2 ? 1 : (next(a - 2) + (a - 1) / 2); }
int main() {
  long int N;
  cin >> N;
  long int ret = 1;
  cout << (N + 1) / 2 << endl;
  return 0;
}
