#include <cstdio>
#include <cstring>
int n,a[200001],tot;
int main()
{
	scanf("%d",&n);for(int i=1;i<=n;++i)scanf("%d",a+i),tot^=a[i];
	for(int i=1;i<=n;++i)a[i]^=tot;for(int i=1;i<=n;++i)printf("%d ",a[i]);putchar(10);return 0;
}