fun main(args: Array<String>) {
    fun solve(cnt: Int, a: Int, b: Int): Int {
        return if (b <= 1) cnt else solve(cnt + 1, a, b - a + 1)
    }
    val (a, b) =
        readLine()!!
            .split(" ")
            .map { it.toInt() }
    print(solve(0, a, b))
}