f x y = inner x 0
    where inner n rv | n <= y = inner (n * 2) (rv + 1)
                     | otherwise = rv

main = interact $ (++ "\n") . show . (\[x, y] -> f x y)
       . map read . words . head . lines
