

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int ans=0;

		if(n%2 == 0) {
			ans = n/2;
		}else {
			ans = n/2 + 1;
		}

		System.out.println(ans);

		scanner.close();


	}

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

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int ans=0;

		if(n%2 == 0) {
			ans = n/2;
		}else {
			ans = n/2 + 1;
		}

		System.out.println(ans);

		scanner.close();


	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int ans=0;

		if(n%2 == 0) {
			ans = n/2;
		}else {
			ans = n/2 + 1;
		}

		System.out.println(ans);

		scanner.close();


	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int ans=0;

		if(n%2 == 0) {
			ans = n/2;
		}else {
			ans = n/2 + 1;
		}

		System.out.println(ans);

		scanner.close();


	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int ans=0; ans 0 if(n%2 == 0) {
			ans = n/2;
		}else {
			ans = n/2 + 1;
		} n%2 == 0 n%2 n 2 0 {
			ans = n/2;
		} ans = n/2 ans n/2 n 2 {
			ans = n/2 + 1;
		} 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 scanner.close() scanner.close scanner String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int ans=0;

		if(n%2 == 0) {
			ans = n/2;
		}else {
			ans = n/2 + 1;
		}

		System.out.println(ans);

		scanner.close();


	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int ans=0;

		if(n%2 == 0) {
			ans = n/2;
		}else {
			ans = n/2 + 1;
		}

		System.out.println(ans);

		scanner.close();


	}

} Main


import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int ans=0;

		if(n%2 == 0) {
			ans = n/2;
		}else {
			ans = n/2 + 1;
		}

		System.out.println(ans);

		scanner.close();


	}

}
