#include <stdio.h>
#include <stdint.h>
uint8_t count_set_bits(uint8_t n) {
// Your code here
uint8_t c; // c accumulates the total bits set in v
for (c = 0; n; n >>= 1)
{
c += n & 1;
}
return c;
}
int main() {
uint8_t reg;
scanf("%hhu", ®);
printf("%u", count_set_bits(reg));
return 0;
}