include Math n=gets.to_i if n==1 puts 0 return end puts log2(n).ceil