#include<bits/stdc++.h>
using namespace std;
using ui=unsigned int;
using ll=long long;
using ull=unsigned long long;
using i128=__int128_t;
using u128=__uint128_t;
using ld=long double;
void solve()
{//我们可以把使用异或运算 将两个数异或起来 结果是相同的位数变成0 不同的变成1 最后统计1的个数即可
ui x,y;
cin >> x >> y;
ui ans=x^y;
cout << __builtin_popcount(ans);
}
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
int t=1;
//cin >> t;
while(t--)
{
solve();
}
return 0;
}

京公网安备 11010502036488号