#include<iostream> #include<vector> #include<string> using namespace std; int main(){ long long int A,B; cin >> A >> B; cout << (A^B); return 0; }