#include "iostream" #define z(i,n)for(l i=0;i>n>>m>>x>>y;z(i,m)cin>>a,k+=(A[a]?0:++A[a]);d[0][0]=1;z(i,n)z(j,N){z(l,N)d[i+1][j^l]+=A[l]*d[i][j];d[i+2][j]-=d[i][j]*(k-(i>0));}z(i,min(N,y+1))r+=(x<=i)*d[n][i];cout<