#include <bits/stdc++.h>
using namespace std;
int n;
void openFile() { freopen("input.txt", "r", stdin); }
void solve() {
  cin >> n;
  cout << (n + 1) / 2 << endl;
}
int main() {
  solve();
  return 0;
}
