#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int m, n; cin >> m >> n; cout << __builtin_popcount(m ^ n) << "\n"; return 0; }