import java.util.*


fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)

    var A: Long
    A = sc.nextLong()
    var B: Long
    B = sc.nextLong()
    solve(A, B)
}

fun solve(A: Long, B: Long) {
    var c = 1L
    var res = 0

    while (c < B) {
        c += A - 1
        res++
    }

    println(res)
}

