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