import java.util.Scanner

fun main() {
	val scn = Scanner(System.`in`)
	val n = scn.nextInt()
	val a = IntArray(n){scn.nextInt()}
	val s = a.reduce { acc, i -> acc xor i }
	val r = IntArray(n){s xor a[it]}
	println(r.joinToString(separator = " "))
}