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