#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
using vec = vector<int>;
const int INF = INT_MAX;
const ll MOD = 1000000007;
int main() {
  int n;
  cin >> n;
  cout << ((n / 2) + ((n % 2 == 0) ? 0 : 1));
}
