#include <bits/stdc++.h>
using namespace std;
vector<vector<int>> g;
int u, v;
int used[100005 + 2];
int main() {
  ios_base::sync_with_stdio(0);
  int n;
  cin >> n;
  if (n == 1)
    cout << 1 << endl;
  else {
    cout << n / 2 + (n % 2) << endl;
  }
}
