total = gets.chomp.to_i current = 1 count = 0 while current < total do count += 1 current = current * 2 end puts count