print(len([i for i in str(bin(int(input())))[2:] if i == '1']))