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