#include #include #include using namespace std; int main(){ long a, b, c; cin >> a >> b; c = a ^ b; cout << c << endl; return 0; }