#include <bits/stdc++.h>
using namespace std;
void read(int a = 0) {
  freopen("in", "r", stdin);
  if (a) freopen("out", "w", stdout);
}
int main() {
  long long n;
  cin >> n;
  cout << (long long)ceil(1.0 * n / 2);
}
