a, b = map(int, input().split()) ans = (a | b) - (a & b) print(ans)