import std.conv, std.stdio;
import std.algorithm, std.array, std.range, std.string;
void main()
{
    readln;
    immutable
        a = readln.chomp.split.to!(uint[]),
        sumall = a.reduce!((p, q) => p ^ q);
    "%(%d %)".writefln(a.map!(e => e ^ sumall));
}
