#include using namespace std; void solve() { unsigned long long a, c; cin >> a >> c; cout << (a ^ c) << endl; } int main() { cin.tie(0); ios::sync_with_stdio(false); solve(); }