import java.util.Scanner;

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

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

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

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

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

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

    if ( n % 2 == 0 ){
      z = n / 2;
    } else {
      z = n / 2 + 1;
    }
    
    System.out.print(z);
  }
} Main
import java.util.Scanner;

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

    if ( n % 2 == 0 ){
      z = n / 2;
    } else {
      z = n / 2 + 1;
    }
    
    System.out.print(z);
  }
}