#include using namespace std; int main() { int64_t A, C; cin >> A >> C; cout << (A ^ C) << endl; return 0; }