#include <bits/stdc++.h>
using namespace std;
void dout() { cerr << endl; }
template <typename Head, typename... Tail>
void dout(Head H, Tail... T) {
  cerr << H << ' ';
  dout(T...);
}
using long long = long long;
using pii = pair<long long, long long>;
using ld = long double;
using pll = pair<long long, long long>;
void precalc() {}
template <class T>
T rnd(T l, T r) {
  using D = uniform_int_distribution<T>;
  static random_device rd;
  static mt19937 gen(rd());
  return D(l, r - 1)(gen);
}
const int MAXN = 90;
void solve() {
  int n;
  cin >> n;
  cout << (n + 1) / 2;
}
void multisolve() {
  int t;
  cin >> t;
  while (t--) solve();
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr), cout.tie(nullptr);
  cout << fixed << setprecision(20);
  precalc();
  solve();
}
