N = int(input()) n = 1 i = 0 p = 0 q = 0 while p != 1: p = N // n q = N % n n *= 2 i += 1 print(i)