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