fun main(args: Array<String>) {
    val (a, b) = readLine()!!.split(" ").map(String::toInt)
    var tap = 1
    var cable = 0

    while (tap < b) {
        cable++
        tap = tap - 1 + a
    }

    println(cable)
}