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