#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.);
int main() {
  int n;
  cin >> n;
  if (n == 1) {
    puts("1");
  } else {
    int mid = n / 2;
    cout << n - mid << endl;
  }
  return 0;
}
