import sys sys.set_int_max_str_digits(10**6) print(bin(int(input())).count('1'))