#include int main(){ using namespace std; unsigned long S, T; cin >> S >> T; cout << (S ^ T) << endl; return 0; }