    import java.util.*;
	import java.lang.Math;
    public class Main
	{
		public static void main(String args[])
		{
			Scanner scan=new Scanner(System.in);
			int n = scan.nextInt();
			if(n%2==0)
				System.out.println(n/2);
			else
				System.out.println((n+1)/2);
		}
	}
	 import java.util.*; util.* java import java.lang.Math; Math java.lang public class Main
	{
		public static void main(String args[])
		{
			Scanner scan=new Scanner(System.in);
			int n = scan.nextInt();
			if(n%2==0)
				System.out.println(n/2);
			else
				System.out.println((n+1)/2);
		}
	} Main public static void main(String args[])
		{
			Scanner scan=new Scanner(System.in);
			int n = scan.nextInt();
			if(n%2==0)
				System.out.println(n/2);
			else
				System.out.println((n+1)/2);
		} main {
			Scanner scan=new Scanner(System.in);
			int n = scan.nextInt();
			if(n%2==0)
				System.out.println(n/2);
			else
				System.out.println((n+1)/2);
		} 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)
				System.out.println(n/2);
			else
				System.out.println((n+1)/2); n%2==0 n%2 n 2 0 System.out.println(n/2) System.out.println System.out System System.out n/2 n 2 System.out.println((n+1)/2) System.out.println System.out System System.out (n+1)/2 (n+1) n 1 2 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)
				System.out.println(n/2);
			else
				System.out.println((n+1)/2);
		}
	} public class Main
	{
		public static void main(String args[])
		{
			Scanner scan=new Scanner(System.in);
			int n = scan.nextInt();
			if(n%2==0)
				System.out.println(n/2);
			else
				System.out.println((n+1)/2);
		}
	} Main
    import java.util.*;
	import java.lang.Math;
    public class Main
	{
		public static void main(String args[])
		{
			Scanner scan=new Scanner(System.in);
			int n = scan.nextInt();
			if(n%2==0)
				System.out.println(n/2);
			else
				System.out.println((n+1)/2);
		}
	}
	