N=gets.chomp.to_i def nishinsuu(num) keta = 1 total = 0 while num > 0 num = num >> 1 keta += 1 end return keta - 1 end puts nishinsuu(N)