# include int main() { int N,k=0; scanf("%d",&N); while( N ) { k += N&1; N >>= 1; } printf("%d",k); return 0; }