import java.util.*;

public class Main
{
	public static void main(String Args[])
	{
		int a;
		Scanner s1=new Scanner(System.in);
		a=s1.nextInt();
		if(a%2==0)
		{
			System.out.println(a/2);
		}
		else
		{
				System.out.println(a/2+1);
		}
	}
} import java.util.*; util.* java public class Main
{
	public static void main(String Args[])
	{
		int a;
		Scanner s1=new Scanner(System.in);
		a=s1.nextInt();
		if(a%2==0)
		{
			System.out.println(a/2);
		}
		else
		{
				System.out.println(a/2+1);
		}
	}
} Main public static void main(String Args[])
	{
		int a;
		Scanner s1=new Scanner(System.in);
		a=s1.nextInt();
		if(a%2==0)
		{
			System.out.println(a/2);
		}
		else
		{
				System.out.println(a/2+1);
		}
	} main {
		int a;
		Scanner s1=new Scanner(System.in);
		a=s1.nextInt();
		if(a%2==0)
		{
			System.out.println(a/2);
		}
		else
		{
				System.out.println(a/2+1);
		}
	} int a; a Scanner s1=new Scanner(System.in); s1 new Scanner(System.in) a=s1.nextInt() a s1.nextInt() s1.nextInt s1 if(a%2==0)
		{
			System.out.println(a/2);
		}
		else
		{
				System.out.println(a/2+1);
		} a%2==0 a%2 a 2 0 {
			System.out.println(a/2);
		} System.out.println(a/2) System.out.println System.out System System.out a/2 a 2 {
				System.out.println(a/2+1);
		} System.out.println(a/2+1) System.out.println System.out System System.out a/2+1 a/2 a 2 1 String Args[] Args public class Main
{
	public static void main(String Args[])
	{
		int a;
		Scanner s1=new Scanner(System.in);
		a=s1.nextInt();
		if(a%2==0)
		{
			System.out.println(a/2);
		}
		else
		{
				System.out.println(a/2+1);
		}
	}
} public class Main
{
	public static void main(String Args[])
	{
		int a;
		Scanner s1=new Scanner(System.in);
		a=s1.nextInt();
		if(a%2==0)
		{
			System.out.println(a/2);
		}
		else
		{
				System.out.println(a/2+1);
		}
	}
} Main
import java.util.*;

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