-- 解法見た
local read = io.read
local xor = bit.bxor

local N = read("*n")
local S = 0
local a = {}
for i = 1, N do
	a[i] = read("*n")
end

S = xor(unpack(a))

local out = {}
for i = 1, N do
	out[i] = xor(S, a[i])
end

print(table.concat(out, " "))
