#include using namespace std; typedef unsigned long long UL; int main(int argc, char* argv[]) { UL A,C; cin>>A>>C; A^=C; cout<