import java.util.*;

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

        if (N%2 == 0)
            ans = N/2.0;
        else
            ans = N/2.0 + 0.5;

        System.out.println((int)ans);
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        double ans;

        if (N%2 == 0)
            ans = N/2.0;
        else
            ans = N/2.0 + 0.5;

        System.out.println((int)ans);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        double ans;

        if (N%2 == 0)
            ans = N/2.0;
        else
            ans = N/2.0 + 0.5;

        System.out.println((int)ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        double ans;

        if (N%2 == 0)
            ans = N/2.0;
        else
            ans = N/2.0 + 0.5;

        System.out.println((int)ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc double ans; ans if (N%2 == 0)
            ans = N/2.0;
        else
            ans = N/2.0 + 0.5; N%2 == 0 N%2 N 2 0 ans = N/2.0 ans N/2.0 N 2.0 ans = N/2.0 + 0.5 ans N/2.0 + 0.5 N/2.0 N 2.0 0.5 System.out.println((int)ans) System.out.println System.out System System.out (int)ans String[] args args
import java.util.*;

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

        if (N%2 == 0)
            ans = N/2.0;
        else
            ans = N/2.0 + 0.5;

        System.out.println((int)ans);
    }
}
