#include <iostream>
using namespace std;
typedef long long ll;
ll n,a[200000],L;
int main(void){
    cin>>n;
    for(int i=0;i<n;i++){
        cin>>a[i];
        L^=a[i];
    }
    for(int i=0;i<n;i++){
        cout<<(L^a[i])<<" ";
    }
    cout<<endl;
}
