#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll inf = 1e9 + 7;
const double PI = 3.141592653589793;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ll n;
  cout << (n + 1) / 2 << "\n";
  return 0;
}
