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