x=bin(input()).count("1") print(x)