#include int main(void) { unsigned int N; int ctr = 0; scanf("%d", &N); while (N) { if (N % 2 == 1) { ctr++; } N = N / 2; } printf("%d", ctr); }