import java.util.Scanner;

public class Main {

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

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

		scan.close();

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

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

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

		scan.close();

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

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

		scan.close();

	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();

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

		scan.close();

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan if(n % 2 == 0) {
			int ans = n/2;
			System.out.println(ans);
		}
		else if(n % 2 == 1) {
			int ans = n/2 + 1;
			System.out.println(ans);
		} n % 2 == 0 n % 2 n 2 0 {
			int ans = n/2;
			System.out.println(ans);
		} int ans = n/2; ans n/2 n 2 System.out.println(ans) System.out.println System.out System System.out ans if(n % 2 == 1) {
			int ans = n/2 + 1;
			System.out.println(ans);
		} n % 2 == 1 n % 2 n 2 1 {
			int ans = n/2 + 1;
			System.out.println(ans);
		} int ans = n/2 + 1; ans n/2 + 1 n/2 n 2 1 System.out.println(ans) System.out.println System.out System System.out ans scan.close() scan.close scan String[] args args public class Main {

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

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

		scan.close();

	}
} public class Main {

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

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

		scan.close();

	}
} Main
import java.util.Scanner;

public class Main {

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

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

		scan.close();

	}
}