import kotlin.math.ceil

fun main(args: Array<String>) {
    //val (tap_sockets, need_sockets) = Pair(8, 9)
    val (tap_sockets, need_sockets) = readLine()!!.split(" ").map { it.toInt() }
    val answer = ceil((need_sockets.toDouble() - 1) / (tap_sockets - 1)).toInt()
    println("$answer")
}