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