#include int main(){ long long a, b, c; std::cin >> a >> c; b = c ^ a; std::cout << b << std::endl; }