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