import java.util.*

fun main(args: Array<String>) {
    val s = readNext().split(" ").map { Integer.parseInt(it) }

    var nowPlug = 1
    var count = 0
    while (true) {
        if(nowPlug >= s[1]) break;
        nowPlug = nowPlug - 1 + s[0]
        count++
    }
    println(count)
}

    fun readNext(): String {
        return readLine()!!
    }
