import sys input_data = sys.stdin.read().strip() n = int(input_data) bin_num = bin(n)[2:] restult = bin_num.count("1") print(restult)
import sys input_data = sys.stdin.read().strip() n = int(input_data) bin_num = bin(n)[2:] restult = bin_num.count("1") print(restult)