n = gets.to_i if n == 1 puts 0 exit end c = 1 while 2 ** c < n c += 1 end puts c