#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main() {

  int n;
  cin >> n;

  if(n % 2 == 0) {
    cout << n / 2 << endl;
  } else {
    ans = n / 2 + 1;
    cout << ans << endl;
  }
}