#include <bits/stdc++.h>
using namespace std;

#define rep(i, N) for (int i = 0; i < N; i++)
#define rep1(i, N) for (int i = 1; i <= N; i++)
const int intinf = numeric_limits<int>::max();

using ll = long long int;
using pii = pair<int, int>;
using pll = pair<ll, ll>;

#define MOD 1000000007

#include "Modulo.h"

void solve()
{
    int N;
    cin >> N;
    cout << (N + 1) / 2 << endl;
}

int main()
{
    solve();
    return 0;
}