# input x = input().split() x1 = int(x[0]) x2 = int(x[1]) n = 0 # for while n != -1: if n ^ x1 == x2: print(n) break else: n += 1