import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int i = kb.nextInt();
		if (i % 2 == 0) {
			System.out.println(i / 2);
		} else {
			System.out.println(i / 2 + 1);
		}
		kb.close();
	}

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int i = kb.nextInt();
		if (i % 2 == 0) {
			System.out.println(i / 2);
		} else {
			System.out.println(i / 2 + 1);
		}
		kb.close();
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int i = kb.nextInt();
		if (i % 2 == 0) {
			System.out.println(i / 2);
		} else {
			System.out.println(i / 2 + 1);
		}
		kb.close();
	} main {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int i = kb.nextInt();
		if (i % 2 == 0) {
			System.out.println(i / 2);
		} else {
			System.out.println(i / 2 + 1);
		}
		kb.close();
	} Scanner kb = new Scanner(System.in); kb new Scanner(System.in) int i = kb.nextInt(); i kb.nextInt() kb.nextInt kb if (i % 2 == 0) {
			System.out.println(i / 2);
		} else {
			System.out.println(i / 2 + 1);
		} i % 2 == 0 i % 2 i 2 0 {
			System.out.println(i / 2);
		} System.out.println(i / 2) System.out.println System.out System System.out i / 2 i 2 {
			System.out.println(i / 2 + 1);
		} System.out.println(i / 2 + 1) System.out.println System.out System System.out i / 2 + 1 i / 2 i 2 1 kb.close() kb.close kb String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int i = kb.nextInt();
		if (i % 2 == 0) {
			System.out.println(i / 2);
		} else {
			System.out.println(i / 2 + 1);
		}
		kb.close();
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int i = kb.nextInt();
		if (i % 2 == 0) {
			System.out.println(i / 2);
		} else {
			System.out.println(i / 2 + 1);
		}
		kb.close();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int i = kb.nextInt();
		if (i % 2 == 0) {
			System.out.println(i / 2);
		} else {
			System.out.println(i / 2 + 1);
		}
		kb.close();
	}

}
