N = gets.chomp.to_i x = 1 cnt = 0 while N > x cnt += 1 x *= 2 end puts cnt