import Foundation

func readInts() -> [Int] {
    return readLine()!.split(separator: " ").map { Int($0)! }
}

let ab=readInts()
let a=ab[0]
let b=ab[1]
var mouth=a
var ans=1

print(Int(ceil(Double(b-1)/Double(a-1))))