unsigned long A[32000],B[9999],S;main(N,T,U,L){int i=-1,w=64;scanf("%d%d%d%d%d%d",&N,&S,&T,&U,&L,A);for(;++i>S%w;for((T%=w)&&(B[L-1]=B[L-1]<>w-T);L--;U%w&&(A[U/w+L+1]^=B[L]>>w-U%w))A[U/w+L]^=B[L]<>i%w&1?79:69);}