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