import math n=int(input()) count = math.floor(math.log2(n)) r = n - 2 ** count if r !=0: count += 1 print(count)