import java.util.Scanner;

class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        sc.nextLine();

        int page = N/2;
        if(N%2!=0) page++;
        System.out.println(page);
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        sc.nextLine();

        int page = N/2;
        if(N%2!=0) page++;
        System.out.println(page);
    }
} Main public static void main(String args[]){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        sc.nextLine();

        int page = N/2;
        if(N%2!=0) page++;
        System.out.println(page);
    } main {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        sc.nextLine();

        int page = N/2;
        if(N%2!=0) page++;
        System.out.println(page);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc sc.nextLine() sc.nextLine sc int page = N/2; page N/2 N 2 if(N%2!=0) page++; N%2!=0 N%2 N 2 0 page++ page System.out.println(page) System.out.println System.out System System.out page String args[] args
import java.util.Scanner;

class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        sc.nextLine();

        int page = N/2;
        if(N%2!=0) page++;
        System.out.println(page);
    }
}