import Data.List
import qualified Data.ByteString.Char8 as B
import Debug.Trace

main :: IO ()
main = breads >>= print . solve

solve :: [Int] -> Int
solve [x, y] = check x 0
    where
        check n acc
            | n > y = acc
            | otherwise = check (n * 2) (acc + 1)

breads :: IO [Int]
breads = unfoldr uff <$> B.getLine
    where
        uff b = check <$> B.readInt b
        check (a, b)
            | B.null b = (a, b)
            | otherwise = (a, B.tail b)