@staticmethod
def e():
    (n, *a) = map(int, sys.stdin.read().split())
    s = 0
    for x in a:
        s ^= x
    b = map((lambda x: (x ^ s)), a)
    print(*b, sep=' ')
@staticmethod
def e():
    (n, *a) = map(int, sys.stdin.read().split())
    s = 0
    for x in a:
        s ^= x
    b = map((lambda x: (x ^ s)), a)
    print(*b, sep=' ')