#include using namespace std; int main() { long A, C; cin >> A >> C; cout << (A ^ C) << "\n"; }