A, B = map(int, input().split()) s = (A | B) - (A & B) print(s)