import sys print(bin(input()).count("1"))