#include using namespace std; int main() { int a, c; cin >> a >> c; int ans = a ^ c; cout << ans << '\n'; return 0; }