#include #include int main() { int c = 0; uint64_t n; scanf("%llu",&n); for (;;) { if (n % 2 == 1) c++; if (n == 1) break; n /= 2; } printf("%d\n",c); }