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