#include #include #include #include #include #include using namespace std; int a,b; int main() { //freopen("input","r",stdin); //freopen("output","w",stdout); scanf("%d",&a); while(a) { b++; a&=a-1; } printf("%d\n",b); return 0; }