#include #define int long long using namespace std; signed main() { int A, C; cin >> A >> C; cout << (A^C) << endl; }