import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		
		if (n % 2 == 0) {
			n/=2;
			System.out.println(n);
		} else {
			n/=2;
			n++;
			System.out.println(n);
		}
		
	}

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

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		
		if (n % 2 == 0) {
			n/=2;
			System.out.println(n);
		} else {
			n/=2;
			n++;
			System.out.println(n);
		}
		
	}

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

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		
		if (n % 2 == 0) {
			n/=2;
			System.out.println(n);
		} else {
			n/=2;
			n++;
			System.out.println(n);
		}
		
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		
		if (n % 2 == 0) {
			n/=2;
			System.out.println(n);
		} else {
			n/=2;
			n++;
			System.out.println(n);
		}
		
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		
		if (n % 2 == 0) {
			n/=2;
			System.out.println(n);
		} else {
			n/=2;
			n++;
			System.out.println(n);
		}
		
	}

}