import java.util.*;
public class Main{
	public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		int N = ob.nextInt();
		int R;
		
		if(N % 2 != 0){
			R = (N / 2) + 1;
		}
		else{
			R = N / 2;
		}

		System.out.println(R);	
	}
} import java.util.*; util.* java public class Main{
	public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		int N = ob.nextInt();
		int R;
		
		if(N % 2 != 0){
			R = (N / 2) + 1;
		}
		else{
			R = N / 2;
		}

		System.out.println(R);	
	}
} Main public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		int N = ob.nextInt();
		int R;
		
		if(N % 2 != 0){
			R = (N / 2) + 1;
		}
		else{
			R = N / 2;
		}

		System.out.println(R);	
	} main {
		
		Scanner ob = new Scanner(System.in);
		int N = ob.nextInt();
		int R;
		
		if(N % 2 != 0){
			R = (N / 2) + 1;
		}
		else{
			R = N / 2;
		}

		System.out.println(R);	
	} Scanner ob = new Scanner(System.in); ob new Scanner(System.in) int N = ob.nextInt(); N ob.nextInt() ob.nextInt ob int R; R if(N % 2 != 0){
			R = (N / 2) + 1;
		}
		else{
			R = N / 2;
		} N % 2 != 0 N % 2 N 2 0 {
			R = (N / 2) + 1;
		} R = (N / 2) + 1 R (N / 2) + 1 (N / 2) N 2 1 {
			R = N / 2;
		} R = N / 2 R N / 2 N 2 System.out.println(R) System.out.println System.out System System.out R String args[] args public class Main{
	public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		int N = ob.nextInt();
		int R;
		
		if(N % 2 != 0){
			R = (N / 2) + 1;
		}
		else{
			R = N / 2;
		}

		System.out.println(R);	
	}
} public class Main{
	public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		int N = ob.nextInt();
		int R;
		
		if(N % 2 != 0){
			R = (N / 2) + 1;
		}
		else{
			R = N / 2;
		}

		System.out.println(R);	
	}
} Main
import java.util.*;
public class Main{
	public static void main(String args[]){
		
		Scanner ob = new Scanner(System.in);
		int N = ob.nextInt();
		int R;
		
		if(N % 2 != 0){
			R = (N / 2) + 1;
		}
		else{
			R = N / 2;
		}

		System.out.println(R);	
	}
}
