#include<bits/stdc++.h>
using namespace std;

int a[200006],n,s;

int main()
{
    scanf("%d",&n);
    for(int i=1;i<=n;++i) {scanf("%d",a+i);s^=a[i];}
    for(int i=1;i<=n;++i) printf("%d ",s^a[i]);
}