#include<iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
using namespace std;
int a;
int main(){
	cin>>a;
	cout<<a>>1;
}#include<iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
using namespace std;
int a;
int main(){
	cin>>a;
	cout<<(a-1>>1)+1;
}