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