import math a,b=map(int, input().split()) a = a^b print(a)