Open junhong7 opened 4 years ago
import sys n = int(sys.stdin.readline().strip()) res = 0 while n: res += 1 n &= (n-1) print(res)