#include #include int main() { int n, s = 0; scanf("%d", &n); while (n != 0) { if ((n%2)!=0) { s += 1; } n /= 2; } printf("%d", s); return 0; }