#include using namespace std; /* * */ int main() { int a, c = 0; cin >> a; while(a) { if(a%2 == 1)c++; a = a>>1; } cout << c; return 0; }