import java.util.*;
import static java.lang.System.*;
import java.math.*;
 
public class Main{
  public static void main(final String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    if(N%2==0){
      out.print(N/2);
    }
     else{
       out.print(N/2+1);
     }
  }
  }
 import java.util.*; util.* java import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; import java.math.*; math.* java public class Main{
  public static void main(final String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    if(N%2==0){
      out.print(N/2);
    }
     else{
       out.print(N/2+1);
     }
  }
  } Main public static void main(final String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    if(N%2==0){
      out.print(N/2);
    }
     else{
       out.print(N/2+1);
     }
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    if(N%2==0){
      out.print(N/2);
    }
     else{
       out.print(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){
      out.print(N/2);
    }
     else{
       out.print(N/2+1);
     } N%2==0 N%2 N 2 0 {
      out.print(N/2);
    } out.print(N/2) out.print out N/2 N 2 {
       out.print(N/2+1);
     } out.print(N/2+1) out.print out N/2+1 N/2 N 2 1 final String[] args args public class Main{
  public static void main(final String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    if(N%2==0){
      out.print(N/2);
    }
     else{
       out.print(N/2+1);
     }
  }
  } public class Main{
  public static void main(final String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    if(N%2==0){
      out.print(N/2);
    }
     else{
       out.print(N/2+1);
     }
  }
  } Main
import java.util.*;
import static java.lang.System.*;
import java.math.*;
 
public class Main{
  public static void main(final String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    if(N%2==0){
      out.print(N/2);
    }
     else{
       out.print(N/2+1);
     }
  }
  }

