typedef unsigned long long ull;ull A[32000],B[32000];int main(){int i=-1,N,S,T,U,L,Q,w=64;scanf("%d%d%d%d%d%d",&N,&S,&T,&U,&L,&Q);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);exit(0);}