#include #include #include #include #define ll long long using namespace std; int B[11]; int main(){ ll a,c; cin>>a>>c; cout<<(a^c)<