#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a;
  b = a;
  int m = a % 2;
  int ans = b / 2;
  if (a == 1) {
    ans = ans + 1;
    cout << ans << endl;
  }
  if (a == 0) {
    cout << ans << endl;
  }
}
