#include <bits/stdc++.h>
using namespace std;
const int maxn = 1005;
const int INF = 0x3f3f3f3f;
int main() {
  int n;
  while (~scanf("%d", &n)) {
    int ans = 0;
    if (n == 1) {
      cout << "1" << endl;
    } else {
      if (n & 1) {
        cout << n / 2 + 1 << endl;
      } else {
        cout << n / 2 << endl;
      }
    }
  }
  return 0;
}
