#include using namespace std; int main() { int64_t a, c; cin >> a >> c; cout << (a ^ c) << '\n'; return 0; }