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