#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main () 
{
  ll n;cin>>n;
  ll a[n],k=0,p;
  for (ll i=0;i<n;i++) {
      cin>>a[i];
      k=k^a[i];
  }
  for (ll i=0;i<n;i++) {
      p=k^a[i];
      cout<<p<<" ";
  }
}