/*
TASK: CARS
LANG: C++
*/
#include<iostream.h>
int main()
{
int x;
cin>>x;
if(x==5) cout<<4<<"\n";
else cout<<(x+1)/2<<"\n";
return 0;
}
