import java.util.*;

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

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