// #define _GLIBCXX_DEBUG #include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) int main() { // Input int A, B; cin >> A >> B; // Output cout << (A ^ B) << endl; }