import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		//入力
		int N = sc.nextInt();

		//ページ数
		int page = N / 2;

		//あまり
		int amari = N % 2;

		if (1 == amari) {
			System.out.println(page + 1);

		} else {
			System.out.println(page);
		}

	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		//入力
		int N = sc.nextInt();

		//ページ数
		int page = N / 2;

		//あまり
		int amari = N % 2;

		if (1 == amari) {
			System.out.println(page + 1);

		} else {
			System.out.println(page);
		}

	}

} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		//入力
		int N = sc.nextInt();

		//ページ数
		int page = N / 2;

		//あまり
		int amari = N % 2;

		if (1 == amari) {
			System.out.println(page + 1);

		} else {
			System.out.println(page);
		}

	} main {

		Scanner sc = new Scanner(System.in);

		//入力
		int N = sc.nextInt();

		//ページ数
		int page = N / 2;

		//あまり
		int amari = N % 2;

		if (1 == amari) {
			System.out.println(page + 1);

		} else {
			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 int page = N / 2; page N / 2 N 2 int amari = N % 2; amari N % 2 N 2 if (1 == amari) {
			System.out.println(page + 1);

		} else {
			System.out.println(page);
		} 1 == amari 1 amari {
			System.out.println(page + 1);

		} System.out.println(page + 1) System.out.println System.out System System.out page + 1 page 1 {
			System.out.println(page);
		} System.out.println(page) System.out.println System.out System System.out page String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		//入力
		int N = sc.nextInt();

		//ページ数
		int page = N / 2;

		//あまり
		int amari = N % 2;

		if (1 == amari) {
			System.out.println(page + 1);

		} else {
			System.out.println(page);
		}

	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		//入力
		int N = sc.nextInt();

		//ページ数
		int page = N / 2;

		//あまり
		int amari = N % 2;

		if (1 == amari) {
			System.out.println(page + 1);

		} else {
			System.out.println(page);
		}

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		//入力
		int N = sc.nextInt();

		//ページ数
		int page = N / 2;

		//あまり
		int amari = N % 2;

		if (1 == amari) {
			System.out.println(page + 1);

		} else {
			System.out.println(page);
		}

	}

}
