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