n = gets.to_i n -= 1 ans = 0 if n == 0 print 0 exit end while 1 < n n /= 2 ans += 1 end print ans+1