N = int(input()) if N%2 == 1 : N += 1 A = 0 while N > 1 : N = N/2 A += 1 print(A)