import std; void main() { int a, b; readf("%d %d\n", a, b); writeln(a ^ b); }