#include using namespace std; int main() { int64_t a, c; cin >> a >> c; int64_t x = a ^ c; cout << x << endl; }