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