n = gets.chomp.to_i i = 1 s = 0 while i < n i = i * 2 s += 1 end puts s