let rec calc n = if n <= 2 then 1 else 1 + calc ((n + 1) / 2) let main = let N = stdin.ReadLine() |> int printfn "%d" (calc N)