#include #include #include #include #include #include #define pb push_back #define all(x) begin(x),end(x) #define ll long long #define P pair #define lP pait using namespace std; int main() { ll a,c; cin>>a>>c; cout<<(a^c)<