import java.io.*;
import java.util.*;

class Main
{
  public static void main (String[] arg)
  {
    Scanner scan = new Scanner(System.in);
    int n = Integer.parseInt(scan.next()); //整数
    
    int m = n / 2;
    
    if(n % 2 == 1){
      m++;
    }
    
    System.out.println(m);
  }
} import java.io.*; io.* java import java.util.*; util.* java class Main
{
  public static void main (String[] arg)
  {
    Scanner scan = new Scanner(System.in);
    int n = Integer.parseInt(scan.next()); //整数
    
    int m = n / 2;
    
    if(n % 2 == 1){
      m++;
    }
    
    System.out.println(m);
  }
} Main public static void main (String[] arg)
  {
    Scanner scan = new Scanner(System.in);
    int n = Integer.parseInt(scan.next()); //整数
    
    int m = n / 2;
    
    if(n % 2 == 1){
      m++;
    }
    
    System.out.println(m);
  } main {
    Scanner scan = new Scanner(System.in);
    int n = Integer.parseInt(scan.next()); //整数
    
    int m = n / 2;
    
    if(n % 2 == 1){
      m++;
    }
    
    System.out.println(m);
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = Integer.parseInt(scan.next()); n Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int m = n / 2; m n / 2 n 2 if(n % 2 == 1){
      m++;
    } n % 2 == 1 n % 2 n 2 1 {
      m++;
    } m++ m System.out.println(m) System.out.println System.out System System.out m String[] arg arg
import java.io.*;
import java.util.*;

class Main
{
  public static void main (String[] arg)
  {
    Scanner scan = new Scanner(System.in);
    int n = Integer.parseInt(scan.next()); //整数
    
    int m = n / 2;
    
    if(n % 2 == 1){
      m++;
    }
    
    System.out.println(m);
  }
}