#include #include #include #include #include #include #include using namespace std; typedef long long lint; typedef vectorvi; typedef pairpii; #define rep(i,n)for(int i=0;i<(int)(n);++i) const int THRESH2=10; const int THRESH=10000; const int M=110000; int idx[M],occ[M]; vi solve(int n,int m,vi a){ vi ans; int opt=0; int time2=THRESH2; while(time2>0&&opt<0xfffff){ memset(idx,0,sizeof(idx)); memset(occ,0,sizeof(occ)); int x=0; rep(i,m){ x^=a[i]; idx[i]=i; occ[i]=true; } int time=THRESH; int pos=0; while(time>0&&x<0xfffff){ //cerr<<"time="<>n>>m; vi a(n); rep(i,n)cin>>a[i]; vi ans=solve(n,m,a); rep(i,m){ cout<