import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int cnt=0;
    while(true){
      if(cnt*2<N){
        cnt++;
      }
      else break;
    }
    System.out.printf("%d",cnt);
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int cnt=0;
    while(true){
      if(cnt*2<N){
        cnt++;
      }
      else break;
    }
    System.out.printf("%d",cnt);
  }
} Main public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int cnt=0;
    while(true){
      if(cnt*2<N){
        cnt++;
      }
      else break;
    }
    System.out.printf("%d",cnt);
  } main {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int cnt=0;
    while(true){
      if(cnt*2<N){
        cnt++;
      }
      else break;
    }
    System.out.printf("%d",cnt);
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int cnt=0; cnt 0 while(true){
      if(cnt*2<N){
        cnt++;
      }
      else break;
    } true {
      if(cnt*2<N){
        cnt++;
      }
      else break;
    } if(cnt*2<N){
        cnt++;
      }
      else break; cnt*2<N cnt*2 cnt 2 N {
        cnt++;
      } cnt++ cnt break; System.out.printf("%d",cnt) System.out.printf System.out System System.out "%d" cnt String[] args args public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int cnt=0;
    while(true){
      if(cnt*2<N){
        cnt++;
      }
      else break;
    }
    System.out.printf("%d",cnt);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int cnt=0;
    while(true){
      if(cnt*2<N){
        cnt++;
      }
      else break;
    }
    System.out.printf("%d",cnt);
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int cnt=0;
    while(true){
      if(cnt*2<N){
        cnt++;
      }
      else break;
    }
    System.out.printf("%d",cnt);
  }
}