#include using namespace std; int main(){ short a,b;cin >> a >> b; cout << (a^b); }