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