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