import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();
        stdIn.close();

        int result = (N % 2 == 0) ? N / 2 : (N + 1) / 2;
        System.out.println(result);
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();
        stdIn.close();

        int result = (N % 2 == 0) ? N / 2 : (N + 1) / 2;
        System.out.println(result);
    }
} Main public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();
        stdIn.close();

        int result = (N % 2 == 0) ? N / 2 : (N + 1) / 2;
        System.out.println(result);
    } main {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();
        stdIn.close();

        int result = (N % 2 == 0) ? N / 2 : (N + 1) / 2;
        System.out.println(result);
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int N = stdIn.nextInt(); N stdIn.nextInt() stdIn.nextInt stdIn stdIn.close() stdIn.close stdIn int result = (N % 2 == 0) ? N / 2 : (N + 1) / 2; result (N % 2 == 0) ? N / 2 : (N + 1) / 2 (N % 2 == 0) N % 2 N 2 0 N / 2 N 2 (N + 1) / 2 (N + 1) N 1 2 System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();
        stdIn.close();

        int result = (N % 2 == 0) ? N / 2 : (N + 1) / 2;
        System.out.println(result);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();
        stdIn.close();

        int result = (N % 2 == 0) ? N / 2 : (N + 1) / 2;
        System.out.println(result);
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();
        stdIn.close();

        int result = (N % 2 == 0) ? N / 2 : (N + 1) / 2;
        System.out.println(result);
    }
}
