#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <algorithm>
#include <cmath>

using namespace std;

int main() {
    int n;
    cin >> n;
    int ans;
    if (n % 2 == 0) {
        ans n / 2;
    }
    else {
        ans = (n / 2) + 1;
    }
    cout << ans << endl;
    return 0;
}
