#include using namespace std; int main() { cin.tie(0)->sync_with_stdio(0); int A, B; cin >> A >> B; cout << (A | B) - (A & B) << endl; }