a = gets.split.map(&:to_i)[0] n = 0 while a != 0 a /= 2 n += 1 end puts n