main :: IO()
main = do
    [a,b] <- map read . words <$> getLine
    print $ getsolve a b
    
getsolve :: Int -> Int -> Int
getsolve a b
    | b == 1			= 0
    | b <= a			= 1
    | otherwise			= div (b - a) (a-1) + 1 + if mod (b-a) (a-1) == 0 then 0 else 1