#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
vector<vector<pair<int, int>>> z(100010);
vector<vector<int>> a, b;
vector<bool> seen;
signed main() {
  int N;
  if (N % 2) {
    cout << N / 2 + 1 << endl;
  } else {
    cout << N / 2 << endl;
  }
  return 0;
}
