n=int(input())
count=0
while(n>0):
    if(n&1):
        count+=1
    n=n>>1
print(count)

4eb11bedb4fafae22f5f71ad581660a1225f88c9
<mask token>

<mask token>
while n > 0:
    if n & 1:
        count += 1
    n = n >> 1
print(count)

n = int(input())
count = 0
while n > 0:
    if n & 1:
        count += 1
    n = n >> 1
print(count)

n=int(input())
count=0
while(n>0):
    if(n&1):
        count+=1
    n=n>>1
print(count)
