import java.io.*;
import java.util.*;
import java.math.*;
 
public class Main
{
    public static void main(String[]args)throws IOException
    {
         Scanner sc = new Scanner(System.in);
         int N = sc.nextInt();
         if(N%2==0)
         {
              System.out.println((N/2));
         }
         else
         {
              System.out.println((N/2)+1);
         }
    }
}
            import java.io.*; io.* java import java.util.*; util.* java import java.math.*; math.* java public class Main
{
    public static void main(String[]args)throws IOException
    {
         Scanner sc = new Scanner(System.in);
         int N = sc.nextInt();
         if(N%2==0)
         {
              System.out.println((N/2));
         }
         else
         {
              System.out.println((N/2)+1);
         }
    }
} Main public static void main(String[]args)throws IOException
    {
         Scanner sc = new Scanner(System.in);
         int N = sc.nextInt();
         if(N%2==0)
         {
              System.out.println((N/2));
         }
         else
         {
              System.out.println((N/2)+1);
         }
    } main {
         Scanner sc = new Scanner(System.in);
         int N = sc.nextInt();
         if(N%2==0)
         {
              System.out.println((N/2));
         }
         else
         {
              System.out.println((N/2)+1);
         }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc if(N%2==0)
         {
              System.out.println((N/2));
         }
         else
         {
              System.out.println((N/2)+1);
         } N%2==0 N%2 N 2 0 {
              System.out.println((N/2));
         } System.out.println((N/2)) System.out.println System.out System System.out (N/2) N 2 {
              System.out.println((N/2)+1);
         } System.out.println((N/2)+1) System.out.println System.out System System.out (N/2)+1 (N/2) N 2 1 String[]args args public class Main
{
    public static void main(String[]args)throws IOException
    {
         Scanner sc = new Scanner(System.in);
         int N = sc.nextInt();
         if(N%2==0)
         {
              System.out.println((N/2));
         }
         else
         {
              System.out.println((N/2)+1);
         }
    }
} public class Main
{
    public static void main(String[]args)throws IOException
    {
         Scanner sc = new Scanner(System.in);
         int N = sc.nextInt();
         if(N%2==0)
         {
              System.out.println((N/2));
         }
         else
         {
              System.out.println((N/2)+1);
         }
    }
} Main
import java.io.*;
import java.util.*;
import java.math.*;
 
public class Main
{
    public static void main(String[]args)throws IOException
    {
         Scanner sc = new Scanner(System.in);
         int N = sc.nextInt();
         if(N%2==0)
         {
              System.out.println((N/2));
         }
         else
         {
              System.out.println((N/2)+1);
         }
    }
}
           
