N = int(input())

total = 0

i = 0

alist = []

for a in input().split():

    alist.append(int(a))

    total = total ^ int(a)

    i = i+1



for j in range(N):

    ans = total ^ alist[j]

    print(ans, end=" ")

N = int(input())

A = list(map(int, input().split()))

total = A[0]

for i in range(1, N):

    total ^= A[i]

for i in range(N):

    print(total ^ A[i], end=" ")

N = int(input())
total = 0
i = 0
alist = []
for a in input().split():
    alist.append(int(a))
    total = total ^ int(a)
    i = i + 1
for j in range(N):
    ans = total ^ alist[j]
    print(ans, end=" ")

N = int(input())
A = list(map(int, input().split()))
total = A[0]
for i in range(1, N):
    total ^= A[i]
for i in range(N):
    print(total ^ A[i], end=" ")

-total = 0 -i = 0 -alist = [] -for a in input().split(): -    alist.append(int(a)) -    total = total ^ int(a) -    i = i + 1 -for j in range(N): -    ans = total ^ alist[j] -    print(ans, end=" ") +A = list(map(int, input().split())) +total = A[0] +for i in range(1, N): +    total ^= A[i] +for i in range(N): +    print(total ^ A[i], end=" ")