#include <bits/stdc++.h>
int main(void) {
  int N, pege;
  scanf("%d", N);
  if (N % 2 == 0) {
    pege = N / 2;
  } else if (N % 2 == 1) {
    pege = (N + 1) / 2;
  }
  printf("%d", pege);
  return 0;
}
