10分

from functools import reduce

for _ in range(11):
    x, y = map(int, input().rstrip().split(' '))
    r = [x << i for i, k in enumerate(reversed(bin(y)[2:])) if int(k) == 1]
    if r:
        r = reduce(lambda x,y: x^y, r)
    else:
        r = 0

    print('%d@%d=%d' % (x, y, r) )