n = int(input()) count = 0 if n % 2 == 0: while n >= 1: n = n / 2 count += 1 else: n - 1 while n >= 1: n = n / 2 count += 1 print(count)