func readIntArray() -> [Int] {
    readLine()!.split(separator: " ").map({Int($0)!})
}


let N = Int(readLine()!)!
let a = readIntArray()
var total = 0
a.forEach({
    total ^= $0
})
a.forEach({
    print(total ^ $0, terminator: " ")
})
