import sys input = sys.stdin.readline A,B=map(int,input().split()) print((A|B)-(A&B))