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