main = do
    s <- (map read . words) <$> getLine :: IO [Int]
    let a = s !! 0
    let b = s !! 1
    let k = (b - 1) `mod` (a - 1)
    print $ if k == 0 then (b-1) `div` (a-1) else (b-1)`div`(a-1) + 1