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