#include using namespace std; int a,b; int main(){ ios::sync_with_stdio(false),cin.tie(0); cin >> a >> b; cout << (a^b) << "\n"; return 0; }