#include #include using namespace std; int main(){ bitset <32> n; int x; cin >> x; n = x; cout << n.count() << "\n"; return 0; }