import java.math.BigInteger;
import java.util.Scanner;

public class Main {
    final BigInteger mod = BigInteger.valueOf(1000000007L);

    private static int taskOne(int n, int k) {


        return 0;
    }

    private static int taskTwo() {
        return 0;
    }

    private static int taskThree() {
        return 0;
    }

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

        if (n % 2 != 0) {
            System.out.println(n / 2 + 1);
        } else {
            System.out.println(n / 2);
        }
    }
} import java.math.BigInteger; BigInteger java.math import java.util.Scanner; Scanner java.util public class Main {
    final BigInteger mod = BigInteger.valueOf(1000000007L);

    private static int taskOne(int n, int k) {


        return 0;
    }

    private static int taskTwo() {
        return 0;
    }

    private static int taskThree() {
        return 0;
    }

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

        if (n % 2 != 0) {
            System.out.println(n / 2 + 1);
        } else {
            System.out.println(n / 2);
        }
    }
} Main final BigInteger mod = BigInteger.valueOf(1000000007L); mod BigInteger.valueOf(1000000007L) BigInteger.valueOf BigInteger 1000000007L private static int taskOne(int n, int k) {


        return 0;
    } taskOne {


        return 0;
    } return 0; 0 int n n int k k private static int taskTwo() {
        return 0;
    } taskTwo {
        return 0;
    } return 0; 0 private static int taskThree() {
        return 0;
    } taskThree {
        return 0;
    } return 0; 0 public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        if (n % 2 != 0) {
            System.out.println(n / 2 + 1);
        } else {
            System.out.println(n / 2);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        if (n % 2 != 0) {
            System.out.println(n / 2 + 1);
        } else {
            System.out.println(n / 2);
        }
    } 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 + 1);
        } else {
            System.out.println(n / 2);
        } n % 2 != 0 n % 2 n 2 0 {
            System.out.println(n / 2 + 1);
        } System.out.println(n / 2 + 1) System.out.println System.out System System.out n / 2 + 1 n / 2 n 2 1 {
            System.out.println(n / 2);
        } System.out.println(n / 2) System.out.println System.out System System.out n / 2 n 2 String[] args args public class Main {
    final BigInteger mod = BigInteger.valueOf(1000000007L);

    private static int taskOne(int n, int k) {


        return 0;
    }

    private static int taskTwo() {
        return 0;
    }

    private static int taskThree() {
        return 0;
    }

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

        if (n % 2 != 0) {
            System.out.println(n / 2 + 1);
        } else {
            System.out.println(n / 2);
        }
    }
} public class Main {
    final BigInteger mod = BigInteger.valueOf(1000000007L);

    private static int taskOne(int n, int k) {


        return 0;
    }

    private static int taskTwo() {
        return 0;
    }

    private static int taskThree() {
        return 0;
    }

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

        if (n % 2 != 0) {
            System.out.println(n / 2 + 1);
        } else {
            System.out.println(n / 2);
        }
    }
} Main
import java.math.BigInteger;
import java.util.Scanner;

public class Main {
    final BigInteger mod = BigInteger.valueOf(1000000007L);

    private static int taskOne(int n, int k) {


        return 0;
    }

    private static int taskTwo() {
        return 0;
    }

    private static int taskThree() {
        return 0;
    }

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

        if (n % 2 != 0) {
            System.out.println(n / 2 + 1);
        } else {
            System.out.println(n / 2);
        }
    }
}