#include int main(){ long long x,y;std::cin>>x>>y; std::cout<<(x^y)<