#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<long long>>;
const long long inf = 1e18 + 7;
const long long mod = 1e9 + 7;
long long GetDigit(long long num) {
  unsigned digit = 0;
  while (num != 0) {
    num /= 10;
    digit++;
  }
  return digit;
}
int main() {
  long long N;
  cin >> N;
  cout << ceil(N / 2) << endl;
  return 0;
}
