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