#include #include #include #include //#include using namespace std; #define dimen 1001 int n=0,no=0; int main(){ #ifndef ONLINE_JUDGE freopen("test.in", "r", stdin); //freopen("test.out", "w", stdout); #endif cin >> n; while (n>0){ if (n%2 == 1){ no++; } n = n/2; } cout << no << endl; }