#include <bits/stdc++.h>
int main(void) {
  int pages, papers, tmp;
  if (scanf("%d", &pages) == 1)
    ;
  tmp = pages % 2;
  papers = (int)(pages / 2);
  if (tmp == 1) {
    papers += 1;
  }
  return papers;
}
