import java.util.Scanner;

class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		double N = scan.nextInt();
		if (N == 1) {
			System.out.println(1);
		} else {
			double answer = Math.ceil(N / 2);
			System.out.println((int) answer);
		}
	}

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

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		double N = scan.nextInt();
		if (N == 1) {
			System.out.println(1);
		} else {
			double answer = Math.ceil(N / 2);
			System.out.println((int) answer);
		}
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		double N = scan.nextInt();
		if (N == 1) {
			System.out.println(1);
		} else {
			double answer = Math.ceil(N / 2);
			System.out.println((int) answer);
		}
	} main {
		Scanner scan = new Scanner(System.in);
		double N = scan.nextInt();
		if (N == 1) {
			System.out.println(1);
		} else {
			double answer = Math.ceil(N / 2);
			System.out.println((int) answer);
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) double N = scan.nextInt(); N scan.nextInt() scan.nextInt scan if (N == 1) {
			System.out.println(1);
		} else {
			double answer = Math.ceil(N / 2);
			System.out.println((int) answer);
		} N == 1 N 1 {
			System.out.println(1);
		} System.out.println(1) System.out.println System.out System System.out 1 {
			double answer = Math.ceil(N / 2);
			System.out.println((int) answer);
		} double answer = Math.ceil(N / 2); answer Math.ceil(N / 2) Math.ceil Math N / 2 N 2 System.out.println((int) answer) System.out.println System.out System System.out (int) answer String[] args args
import java.util.Scanner;

class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		double N = scan.nextInt();
		if (N == 1) {
			System.out.println(1);
		} else {
			double answer = Math.ceil(N / 2);
			System.out.println((int) answer);
		}
	}

}