need = gets.to_i times = 0 current = 1 loop do current *= 2 times += 1 break if current >= need end print times