int Count(int c)
{
	int i = 0;
	int count = 0;

	for (i = 0; i < 32; i++)
	{
		if (c & 1 == 1)
		{
			count++;
		}
		c = c >> 1;
	}
	return count;
}
int main()
{
	int a = 0;
	int b = 0;
	scanf("%d %d", &a, &b);

	int c = a ^ b;

	int ret = Count(c);

	printf("%d", ret);
	return 0;
}