#pragma GCC optimize("Ofast") #pragma GCC target("avx2") char*mmap(); #define RD(v) int v=0;{int _c;while(_c=*rp++-48,_c>=0)v=v*10+_c;} a[123456]; b[123456]; c[123456]; d[123456]; main(){ char*rp=mmap(0l,1l<<28,1,2,0,0ll); RD(n); RD(k); RD(x); for(int i=0;ix;){ int t=c[a[i]]; c[a[i]]=c[b[i]]; c[b[i]]=t; } for(int i=1;i<=n;++i){ if(c[i]!=d[i]){ printf("%d ",i); } } }