#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int ans = n / 2;
  if (n % 2 == 1) {
    cout << ans + 1 << endl;
  } else {
    cout << ans << endl;
  }
  return 0;
}
