#include #include int main() { int A, C; while (std::cin >> A >> C) { std::cout << (A ^ C) << std::endl; } return 0; }