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