fun main(args: Array<String>) {
    val line = readLine()
    val nums = line!!.split(" ").map { it.toInt() }
    val ans = solve(nums)
    print(ans)
}

fun solve(nums: List<Int>): Int {
    val tapNum = nums[0]
    val needNum = nums[1]
    
    val integral = (needNum - 1) / (tapNum - 1)
    val remaining = (needNum - 1) % (tapNum - 1) == 0

    return if (remaining) {
        integral
    } else {
        integral + 1
    }
}

