fun main(args: Array<String>) {
    val (a,b) = readLine()!!.split(" ").map { it.toInt() }

    if ( b == 1) {
        println(0)
        return
    }

    var cnt = 1
    var now = a
    while(now < b) {
        now += a-1
        cnt += 1
    }

    println(cnt)
}