import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner kb = new Scanner(System.in);
		int pages = kb.nextInt();
		
		if(pages%2 == 1) {
			System.out.println((pages/2)+1);
		}
		else if(pages%2 == 0) {
			System.out.println(pages/2);
		}
	}

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner kb = new Scanner(System.in);
		int pages = kb.nextInt();
		
		if(pages%2 == 1) {
			System.out.println((pages/2)+1);
		}
		else if(pages%2 == 0) {
			System.out.println(pages/2);
		}
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner kb = new Scanner(System.in);
		int pages = kb.nextInt();
		
		if(pages%2 == 1) {
			System.out.println((pages/2)+1);
		}
		else if(pages%2 == 0) {
			System.out.println(pages/2);
		}
	} main {
		// TODO Auto-generated method stub

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner kb = new Scanner(System.in);
		int pages = kb.nextInt();
		
		if(pages%2 == 1) {
			System.out.println((pages/2)+1);
		}
		else if(pages%2 == 0) {
			System.out.println(pages/2);
		}
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner kb = new Scanner(System.in);
		int pages = kb.nextInt();
		
		if(pages%2 == 1) {
			System.out.println((pages/2)+1);
		}
		else if(pages%2 == 0) {
			System.out.println(pages/2);
		}
	}

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner kb = new Scanner(System.in);
		int pages = kb.nextInt();
		
		if(pages%2 == 1) {
			System.out.println((pages/2)+1);
		}
		else if(pages%2 == 0) {
			System.out.println(pages/2);
		}
	}

}
