A,B=map(int,input().split()) x=A|B y=A&B z=x-y print(z)