n = int(input()) knock = 0 next = 0 while n > 0: if n == 2: knock +=1 break q,mod = divmod(n, 2) n = q knock += 1 print(knock)