#include <bits/stdc++.h>
using namespace std;
int r_index(const char* str, char p) {
  int i = 0;
  int position = -1;
  while (*str != '\0') {
    if (*str == p) position = i;
    ++i;
    ++str;
  }
  return position;
}
int rindex(const char* str, char p) {
  const char* position = str - 1;
  const char* ind;
  for (ind = str; *ind; ++ind)
    if (p == *ind) position = ind;
  return (position - str);
}
int main() {
  int n;
  cin >> n;
  cout << (n + 1) / 2;
  return 0;
}
