n = int(input())
a = list (map (int, input().strip().split()))
x = 0
for i in range(n):
    x^=a[i]
for i in range(n):
    print(a[i]^x,end=" ")

8e1c77ed281150ce02aba707ee230b282af9ef0a
<mask token>

<mask token>
for i in range(n):
    x ^= a[i]
for i in range(n):
    print(a[i] ^ x, end=' ')

n = int(input())
a = list(map(int, input().strip().split()))
x = 0
for i in range(n):
    x ^= a[i]
for i in range(n):
    print(a[i] ^ x, end=' ')

n = int(input())
a = list (map (int, input().strip().split()))
x = 0
for i in range(n):
    x^=a[i]
for i in range(n):
    print(a[i]^x,end=" ")
