#include<bits/stdc++.h>
#include <vector>
#include <string>
#include <cmath>
#include <set>
#include <stdio.h>
#include <algorithm>
#include <map>
#include <queue>
#include <unordered_map>
#define ll long long
#define pii pair <int, int>
#define pll pair <long long, long long>
#define plxy pair <long long, pll>
#define INT_MAX 1e18
using namespace std;
using namespace std;
const int mod=1e9+7;
const int N=2e5+5;
int main()
{
    ll n;
    cin>>n;
    cout<<(n+1)/2;
	return 0;
}
