local bit=require"bit"
local function reada(n,m)m=m or 1 r={}for i=1,m do r[i]={}end for i=1,n do for j=1,m do r[j][i]=io.read"*n"end end return unpack(r)end 
N=io.read"*n"
a=reada(N)
s=0
for i=1,N do
	s=bit.bxor(a[i],s)
end
for i=1,N do
	print(bit.bxor(a[i],s))
end