import java.util.*;

public class Main {

	public static void main(String[] args) {
		// 入力
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int p = 0;
		if(n%2==0){
			p = n/2;
		}else{
			p = n/2 + 1;
		}

		System.out.println(p);
		sc.close();
	}
} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		// 入力
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int p = 0;
		if(n%2==0){
			p = n/2;
		}else{
			p = n/2 + 1;
		}

		System.out.println(p);
		sc.close();
	}
} Main public static void main(String[] args) {
		// 入力
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int p = 0;
		if(n%2==0){
			p = n/2;
		}else{
			p = n/2 + 1;
		}

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

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

	public static void main(String[] args) {
		// 入力
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int p = 0;
		if(n%2==0){
			p = n/2;
		}else{
			p = n/2 + 1;
		}

		System.out.println(p);
		sc.close();
	}
} public class Main {

	public static void main(String[] args) {
		// 入力
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int p = 0;
		if(n%2==0){
			p = n/2;
		}else{
			p = n/2 + 1;
		}

		System.out.println(p);
		sc.close();
	}
} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {
		// 入力
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int p = 0;
		if(n%2==0){
			p = n/2;
		}else{
			p = n/2 + 1;
		}

		System.out.println(p);
		sc.close();
	}
}
