#include int main() { int nr=0,n; scanf("%d",&n); while(n!=0) { if(n%2==1) nr++; n=n/2; } printf("%d",nr); return 0; }