A,B=map(int,input().split()) ans=(A|B)-(A&B) print(ans)