#include <stdio.h> int main() { int a, b; while (scanf("%d %d", &a, &b) != EOF) { int c = 0; for (int i = 0;i < 32; i++) { if((( a >> i ) & 1) != (( b >> i ) & 1)) { c++; } } printf("%d",c); } return 0; }