def tentotwo(x):
x = int(x)
list_two = []
while x>0:
temp = x%2
list_two.append(temp)
x = x//2
return list_two
list_trans = tentotwo(int(input()))
count = 0
for i in list_trans:
if(i==1):
count+=1
else:
continue
print(count)

京公网安备 11010502036488号