import java.util.*;
class Main {
	public static void main(String[] args) throws Exception {
		final Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        if (N % 2 == 0)
            System.out.println((N / 2));
        else
            System.out.println((N / 2) + 1);

        sc.close();
    }

} import java.util.*; util.* java class Main {
	public static void main(String[] args) throws Exception {
		final Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        if (N % 2 == 0)
            System.out.println((N / 2));
        else
            System.out.println((N / 2) + 1);

        sc.close();
    }

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

        int N = sc.nextInt();
        if (N % 2 == 0)
            System.out.println((N / 2));
        else
            System.out.println((N / 2) + 1);

        sc.close();
    } main {
		final Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        if (N % 2 == 0)
            System.out.println((N / 2));
        else
            System.out.println((N / 2) + 1);

        sc.close();
    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc if (N % 2 == 0)
            System.out.println((N / 2));
        else
            System.out.println((N / 2) + 1); N % 2 == 0 N % 2 N 2 0 System.out.println((N / 2)) System.out.println System.out System System.out (N / 2) N 2 System.out.println((N / 2) + 1) System.out.println System.out System System.out (N / 2) + 1 (N / 2) N 2 1 sc.close() sc.close sc String[] args args
import java.util.*;
class Main {
	public static void main(String[] args) throws Exception {
		final Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        if (N % 2 == 0)
            System.out.println((N / 2));
        else
            System.out.println((N / 2) + 1);

        sc.close();
    }

}
