import std; void main() { long A, C; readf("%d %d\n", A, C); long B = A ^ C; B.writeln; }