#include int main(void){int num=0; scanf("%d",&num); num = num/2; if(num%2){ num = num/2+1; } printf("%d",num); }