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