func readTwoInts(separator: String.Element = " ") -> (a: Int, b: Int) {
    let ints = readLine()!.split(separator: separator).map { Int($0)! }
    return (a: ints[0], b: ints[1])
}

func mainA() {
    let (A, B) = readTwoInts()

    if B == 1 {
        print(0)
        return
    }

    var count = 0
    while true {
        count += 1
        if count * (A - 1) + 1 >= B {
            print(count)
            return
        }
    }
}

mainA()