#include using namespace std; int main() { unsigned int n; int nrB = 0; cin >> n; while (n) { if (n & 1) nrB++; n >>= 1; } cout << nrB; return 0; }