n = gets.chomp.to_i i = 0 while 2 ** i < n do i += 1 end p i