#define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> int main() { int a, b; int i = 0; int count = 0; scanf("%d %d", &a, &b); for (i = 0; i < 32; i++) { int x = (a >> i) & 1; int y = (b >> i) & 1; if (x != y) { count++; } } printf("%d\n", count); return 0; }