import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int n = sc.nextInt();
			
			int p = n % 2 == 0 ? n /2 : n /2 + 1;
			
			System.out.println(p);
			
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int n = sc.nextInt();
			
			int p = n % 2 == 0 ? n /2 : n /2 + 1;
			
			System.out.println(p);
			
		}
	}
} Main public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int n = sc.nextInt();
			
			int p = n % 2 == 0 ? n /2 : n /2 + 1;
			
			System.out.println(p);
			
		}
	} main {
		try(Scanner sc = new Scanner(System.in)) {
			
			int n = sc.nextInt();
			
			int p = n % 2 == 0 ? n /2 : n /2 + 1;
			
			System.out.println(p);
			
		}
	} try(Scanner sc = new Scanner(System.in)) {
			
			int n = sc.nextInt();
			
			int p = n % 2 == 0 ? n /2 : n /2 + 1;
			
			System.out.println(p);
			
		} {
			
			int n = sc.nextInt();
			
			int p = n % 2 == 0 ? n /2 : n /2 + 1;
			
			System.out.println(p);
			
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int p = n % 2 == 0 ? n /2 : n /2 + 1; p n % 2 == 0 ? n /2 : n /2 + 1 n % 2 == 0 n % 2 n 2 0 n /2 n 2 n /2 + 1 n /2 n 2 1 System.out.println(p) System.out.println System.out System System.out p String[] args args public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int n = sc.nextInt();
			
			int p = n % 2 == 0 ? n /2 : n /2 + 1;
			
			System.out.println(p);
			
		}
	}
} public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int n = sc.nextInt();
			
			int p = n % 2 == 0 ? n /2 : n /2 + 1;
			
			System.out.println(p);
			
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int n = sc.nextInt();
			
			int p = n % 2 == 0 ? n /2 : n /2 + 1;
			
			System.out.println(p);
			
		}
	}
}