#include <bits/stdc++.h>
using namespace std;
ifstream fi("test.txt");
ofstream fo("out.txt");
const long long MOD = 1e9 + 7;
const long long base = 269;
const int ooi = 1 << 30;
const int N = 1e5 + 5;
long long n, m, q, k, pos, rs, t, T, cnt, rs1;
long long maxx = -1e9, minn = 1e9;
long long a[N], b[N];
string vowel = "aeiouy";
int main() {
  cin >> n;
  cout << (n + 1) / 2;
}
