#include <bits/stdc++.h>
using namespace std;
const long long inf = 1e9;
const long long inf64 = 1e18;
const long long MOD = inf + 7;
signed main() {
  ios::sync_with_stdio(false), cin.tie(0);
  ;
  long long n;
  cin >> n;
  cout << (n + 1) / 2;
}
