a, b = input().split() a = int(a) b = int(b) y=bin((a | b) - (a & b)) y=int(y,2) print(y)