#include<iostream>
#include<vector>
#include<queue>
#include<cstring>
#include<algorithm>
#define rep(i,a,b) for(int i=a;i<b;i++)

using namespace std;

int main(){
	//freopen("readme.txt","r",stdin);
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	int n;
	cin >> n;
	if(n%2 ==) cout << n/2 << '\n';
	else cout << n/2 +1 << '\n';
	return 0;
}