N = gets.chomp.to_i fbis = 1 count = 0 while N > fbis fbis *= 2 count += 1 end puts count