#include <stdio.h>

int bit_count(int x)
{
	int ret = 0;
	
	while ( x )
	{
		++ret;
		x = x & ( x + ( ~1 + 1 ) );
		// ~1 + 1 == -1
		// x + (-1) == x - 1
	}
	
	return ret;
}

int main(void)
{
	int input;
	
	if ( scanf("%d", &input) == 1 )
		printf("Count of 1 bits: %d\n", bit_count(input));
		
	return 0;
}
