#include <bits/stdc++.h>
using namespace std;
const int N = 10000 + 24;
const int M = 1000 + 24;
long long n, m, t;
int main() {
  while (~scanf("%lld", &n)) {
    long long ans = 1;
    n -= 1;
    printf("%lld\n", ans + n / 2);
  }
}
