
import java.util.Scanner;

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

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		
		int a = N/2;
		
		if (N%2 == 0 ) {
			
			System.out.print(a);
		}else{
			System.out.print(a + 1);

		}

	}
	
}

 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 a = N/2;
		
		if (N%2 == 0 ) {
			
			System.out.print(a);
		}else{
			System.out.print(a + 1);

		}

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

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		
		int a = N/2;
		
		if (N%2 == 0 ) {
			
			System.out.print(a);
		}else{
			System.out.print(a + 1);

		}

	} main {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		
		int a = N/2;
		
		if (N%2 == 0 ) {
			
			System.out.print(a);
		}else{
			System.out.print(a + 1);

		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int a = N/2; a N/2 N 2 if (N%2 == 0 ) {
			
			System.out.print(a);
		}else{
			System.out.print(a + 1);

		} N%2 == 0 N%2 N 2 0 {
			
			System.out.print(a);
		} System.out.print(a) System.out.print System.out System System.out a {
			System.out.print(a + 1);

		} System.out.print(a + 1) System.out.print System.out System System.out a + 1 a 1 String[] args args public class Main{
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		
		int a = N/2;
		
		if (N%2 == 0 ) {
			
			System.out.print(a);
		}else{
			System.out.print(a + 1);

		}

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

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		
		int a = N/2;
		
		if (N%2 == 0 ) {
			
			System.out.print(a);
		}else{
			System.out.print(a + 1);

		}

	}
	
} 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 a = N/2;
		
		if (N%2 == 0 ) {
			
			System.out.print(a);
		}else{
			System.out.print(a + 1);

		}

	}
	
}


