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