#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const long double pi = acos(-1);
const int MOD = 1e9 + 7;
int main() {
  int n;
  scanf("%d", &n);
  printf("%d\n", (n + 1) / 2);
  return 0;
}
