#include <bits/stdc++.h>
int main(void) {
  long int num[200020] = {0}, output, input, all = 0;
  scanf("%ld", &input);
  for (int i = 0; i < input; i++) {
    scanf("%ld", &num[i]);
    all ^= num[i];
  }
  for (int i = 0; i < input; i++) {
    printf("%ld", all ^ num[i]);
    if (i == input - 1) {
      printf("\n");
    } else {
      printf(" ");
    }
  }
  return 0;
}
