open System let max = Console.ReadLine() |> int let rec twice n c = if (n*2) >= max then c else twice (n*2) c + 1 if max = 1 then 0 else twice 1 1 |> Console.WriteLine