#include using namespace std; #define ll long long int main() { ll a, b; cin >> a >> b; cout << (a ^ b) << endl; return 0; }