#include<bits\stdc++.h>

using namespace std;

int main()
{
    int n;
    printf("please enter the total number of pages:");
    scanf("%d",&n);

    if(n%2==0){
        printf("%d",n/2);
    }
    else{
        printf("%d",(n+1)/2);
    }
    return 0;
}