import java.util.Scanner;
class Main
{
	public static void main(String args[])
	{
		Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();

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

        int sum=n/2;
        if(n%2!=0){
            sum++;
        }
        System.out.println(sum);
        sc.close();
    }
} Main public static void main(String args[])
	{
		Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();

        int sum=n/2;
        if(n%2!=0){
            sum++;
        }
        System.out.println(sum);
        sc.close();
    } main {
		Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();

        int sum=n/2;
        if(n%2!=0){
            sum++;
        }
        System.out.println(sum);
        sc.close();
    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int sum=n/2; sum n/2 n 2 if(n%2!=0){
            sum++;
        } n%2!=0 n%2 n 2 0 {
            sum++;
        } sum++ sum System.out.println(sum) System.out.println System.out System System.out sum 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 n=sc.nextInt();

        int sum=n/2;
        if(n%2!=0){
            sum++;
        }
        System.out.println(sum);
        sc.close();
    }
}