#include <bits/stdc++.h>
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
int main() {
  double n;
  cin >> n;
  double g = (n + 1) / 2;
  cout << g;
  return 0;
}
