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