a, b = map(int, input().split()) # if (a == b): # print(0) # else: # print(1) # 直接用上面的这个不就好了 print((a & ~b) | (b & ~a)) # 门电路模拟