import java.util.Scanner;
import java.lang.Math; 


class Main
{
  public static void main(String[] args)
  {
	Scanner input= new Scanner(System.in);
    int n= input.nextInt();
    
    if(n%2==0)
        System.out.print(n/2);
    else
        System.out.print(n/2 + 1);

  }
} import java.util.Scanner; Scanner java.util import java.lang.Math; Math java.lang class Main
{
  public static void main(String[] args)
  {
	Scanner input= new Scanner(System.in);
    int n= input.nextInt();
    
    if(n%2==0)
        System.out.print(n/2);
    else
        System.out.print(n/2 + 1);

  }
} Main public static void main(String[] args)
  {
	Scanner input= new Scanner(System.in);
    int n= input.nextInt();
    
    if(n%2==0)
        System.out.print(n/2);
    else
        System.out.print(n/2 + 1);

  } main {
	Scanner input= new Scanner(System.in);
    int n= input.nextInt();
    
    if(n%2==0)
        System.out.print(n/2);
    else
        System.out.print(n/2 + 1);

  } Scanner input= new Scanner(System.in); input new Scanner(System.in) int n= input.nextInt(); n input.nextInt() input.nextInt input if(n%2==0)
        System.out.print(n/2);
    else
        System.out.print(n/2 + 1); n%2==0 n%2 n 2 0 System.out.print(n/2) System.out.print System.out System System.out n/2 n 2 System.out.print(n/2 + 1) System.out.print System.out System System.out n/2 + 1 n/2 n 2 1 String[] args args
import java.util.Scanner;
import java.lang.Math; 


class Main
{
  public static void main(String[] args)
  {
	Scanner input= new Scanner(System.in);
    int n= input.nextInt();
    
    if(n%2==0)
        System.out.print(n/2);
    else
        System.out.print(n/2 + 1);

  }
}