#include int main() { int x; int bitcount = 0; std::cin >> x; for (int i = 0; i < 32; ++i) { if ((x & (1 << i)) != 0) { bitcount += 1; } } std::cout << bitcount; return 0; }