import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		int ans = N / 2;
		if (N % 2 != 0) ans ++ ;

		System.out.println(ans);
	}
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		int ans = N / 2;
		if (N % 2 != 0) ans ++ ;

		System.out.println(ans);
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		int ans = N / 2;
		if (N % 2 != 0) ans ++ ;

		System.out.println(ans);
	} main {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		int ans = N / 2;
		if (N % 2 != 0) ans ++ ;

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

		int ans = N / 2;
		if (N % 2 != 0) ans ++ ;

		System.out.println(ans);
	}
} public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		int ans = N / 2;
		if (N % 2 != 0) ans ++ ;

		System.out.println(ans);
	}
} Main
import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		int ans = N / 2;
		if (N % 2 != 0) ans ++ ;

		System.out.println(ans);
	}
}