import java.util.Scanner;
 
class Main {
 
	public static void main(String[] args) {
		
		Scanner stdIn = new Scanner(System.in);
 
		int A = stdIn.nextInt();

		int B;

		int C;

		B = A / 2 ;
		C = A % 2 ;
		
		if(C==1){
			System.out.println(B=B+1);
		}else{
			System.out.println(B);
		}
    }
} import java.util.Scanner; Scanner java.util class Main {
 
	public static void main(String[] args) {
		
		Scanner stdIn = new Scanner(System.in);
 
		int A = stdIn.nextInt();

		int B;

		int C;

		B = A / 2 ;
		C = A % 2 ;
		
		if(C==1){
			System.out.println(B=B+1);
		}else{
			System.out.println(B);
		}
    }
} Main public static void main(String[] args) {
		
		Scanner stdIn = new Scanner(System.in);
 
		int A = stdIn.nextInt();

		int B;

		int C;

		B = A / 2 ;
		C = A % 2 ;
		
		if(C==1){
			System.out.println(B=B+1);
		}else{
			System.out.println(B);
		}
    } main {
		
		Scanner stdIn = new Scanner(System.in);
 
		int A = stdIn.nextInt();

		int B;

		int C;

		B = A / 2 ;
		C = A % 2 ;
		
		if(C==1){
			System.out.println(B=B+1);
		}else{
			System.out.println(B);
		}
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int A = stdIn.nextInt(); A stdIn.nextInt() stdIn.nextInt stdIn int B; B int C; C B = A / 2 B A / 2 A 2 C = A % 2 C A % 2 A 2 if(C==1){
			System.out.println(B=B+1);
		}else{
			System.out.println(B);
		} C==1 C 1 {
			System.out.println(B=B+1);
		} System.out.println(B=B+1) System.out.println System.out System System.out B=B+1 B B+1 B 1 {
			System.out.println(B);
		} System.out.println(B) System.out.println System.out System System.out B String[] args args
import java.util.Scanner;
 
class Main {
 
	public static void main(String[] args) {
		
		Scanner stdIn = new Scanner(System.in);
 
		int A = stdIn.nextInt();

		int B;

		int C;

		B = A / 2 ;
		C = A % 2 ;
		
		if(C==1){
			System.out.println(B=B+1);
		}else{
			System.out.println(B);
		}
    }
}