#include #include using namespace std; using ll = long long; int main() { ll a, c; scanf("%lld %lld", &a, &c); printf("%lld\n", a ^ c); }