import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int D = sc.nextInt();
        for (int i = 1; i <= N; i++) {

            if (N <= D) {
                System.out.println(1);
                break;
            }

            if (i - D > 0) {
                if (N % (i + D) != 0) {
                    System.out.println((N / (i + D)) + 1);
                    break;
                } else {
                    System.out.println(N / (i + D));
                    break;
                }
            }
        }
    }
} 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 D = sc.nextInt();
        for (int i = 1; i <= N; i++) {

            if (N <= D) {
                System.out.println(1);
                break;
            }

            if (i - D > 0) {
                if (N % (i + D) != 0) {
                    System.out.println((N / (i + D)) + 1);
                    break;
                } else {
                    System.out.println(N / (i + D));
                    break;
                }
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int D = sc.nextInt();
        for (int i = 1; i <= N; i++) {

            if (N <= D) {
                System.out.println(1);
                break;
            }

            if (i - D > 0) {
                if (N % (i + D) != 0) {
                    System.out.println((N / (i + D)) + 1);
                    break;
                } else {
                    System.out.println(N / (i + D));
                    break;
                }
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int D = sc.nextInt();
        for (int i = 1; i <= N; i++) {

            if (N <= D) {
                System.out.println(1);
                break;
            }

            if (i - D > 0) {
                if (N % (i + D) != 0) {
                    System.out.println((N / (i + D)) + 1);
                    break;
                } else {
                    System.out.println(N / (i + D));
                    break;
                }
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int D = sc.nextInt(); D sc.nextInt() sc.nextInt sc for (int i = 1; i <= N; i++) {

            if (N <= D) {
                System.out.println(1);
                break;
            }

            if (i - D > 0) {
                if (N % (i + D) != 0) {
                    System.out.println((N / (i + D)) + 1);
                    break;
                } else {
                    System.out.println(N / (i + D));
                    break;
                }
            }
        } int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {

            if (N <= D) {
                System.out.println(1);
                break;
            }

            if (i - D > 0) {
                if (N % (i + D) != 0) {
                    System.out.println((N / (i + D)) + 1);
                    break;
                } else {
                    System.out.println(N / (i + D));
                    break;
                }
            }
        } {

            if (N <= D) {
                System.out.println(1);
                break;
            }

            if (i - D > 0) {
                if (N % (i + D) != 0) {
                    System.out.println((N / (i + D)) + 1);
                    break;
                } else {
                    System.out.println(N / (i + D));
                    break;
                }
            }
        } if (N <= D) {
                System.out.println(1);
                break;
            } N <= D N D {
                System.out.println(1);
                break;
            } System.out.println(1) System.out.println System.out System System.out 1 break; if (i - D > 0) {
                if (N % (i + D) != 0) {
                    System.out.println((N / (i + D)) + 1);
                    break;
                } else {
                    System.out.println(N / (i + D));
                    break;
                }
            } i - D > 0 i - D i D 0 {
                if (N % (i + D) != 0) {
                    System.out.println((N / (i + D)) + 1);
                    break;
                } else {
                    System.out.println(N / (i + D));
                    break;
                }
            } if (N % (i + D) != 0) {
                    System.out.println((N / (i + D)) + 1);
                    break;
                } else {
                    System.out.println(N / (i + D));
                    break;
                } N % (i + D) != 0 N % (i + D) N (i + D) i D 0 {
                    System.out.println((N / (i + D)) + 1);
                    break;
                } System.out.println((N / (i + D)) + 1) System.out.println System.out System System.out (N / (i + D)) + 1 (N / (i + D)) N (i + D) i D 1 break; {
                    System.out.println(N / (i + D));
                    break;
                } System.out.println(N / (i + D)) System.out.println System.out System System.out N / (i + D) N (i + D) i D break; String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int D = sc.nextInt();
        for (int i = 1; i <= N; i++) {

            if (N <= D) {
                System.out.println(1);
                break;
            }

            if (i - D > 0) {
                if (N % (i + D) != 0) {
                    System.out.println((N / (i + D)) + 1);
                    break;
                } else {
                    System.out.println(N / (i + D));
                    break;
                }
            }
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int D = sc.nextInt();
        for (int i = 1; i <= N; i++) {

            if (N <= D) {
                System.out.println(1);
                break;
            }

            if (i - D > 0) {
                if (N % (i + D) != 0) {
                    System.out.println((N / (i + D)) + 1);
                    break;
                } else {
                    System.out.println(N / (i + D));
                    break;
                }
            }
        }
    }
} 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 D = sc.nextInt();
        for (int i = 1; i <= N; i++) {

            if (N <= D) {
                System.out.println(1);
                break;
            }

            if (i - D > 0) {
                if (N % (i + D) != 0) {
                    System.out.println((N / (i + D)) + 1);
                    break;
                } else {
                    System.out.println(N / (i + D));
                    break;
                }
            }
        }
    }
}