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