这个数转换成2进制后,输出1的个数
mat =int(input())
# print(mat )
# bin(12345).replace('0b','')
a = "{0:b}".format(mat )
# "{0:b}".format(mat )
# print(a)
b=len(a)
# print(b)
d = 0
for i in range(b):
c = a[i]
# print(c)
if c!=0:
d = d+int(c)
print(d)