#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using lli = long long int;
using ld = long double;
const int N = 5e6 + 5, inf = 2e9;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  if (n % 2)
    cout << (n + 1) / 2 << "\n";
  else
    cout << n / 2 << "\n";
  return 0;
}
