#include <bits/stdc++.h>
template <typename T>
void amax(T& a, T b) {
  a = a > b ? a : b;
}
template <typename T>
void amin(T& a, T b) {
  a = a < b ? a : b;
}
using namespace std;
int n;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  freopen("helloin.txt", "r", stdin);
  freopen("helloout.txt", "w", stdout);
  int n;
  cin >> n;
  cout << ((n + 1) / 2) << endl;
  return 0;
}
