let arr = String(readLine()!).split(separator: " " ).map { Int(String($0))! }
        let a = arr.first ?? 0
        let b = arr.last ?? 0
        var socketNum = a
        var count = 1

        while socketNum < b {
            socketNum += a - 1
            count += 1
        }
        
        if b == 1 {
            count = 0
        }
        
        print(count)