n = gets.to_i ans = 1 cnt = 0 while true break if n <= ans if ans == 1 ans = 2 else ans *= 2 end cnt += 1 end puts cnt