a = gets.to_i n = 0 while a != 0 a /= 2 n += 1 end puts n