#include using namespace std; int main() { int n,i=0; scanf("%d",&n); while(n>0) { i+=n%2; n/=2; } printf("%d\n",i); return 0; }