long N=1024,d[1<<16]={1},A[1024],r;k,m,x,y,a,i,j;main(n){for(scanf("%d%d%d%d",&n,&m,&x,&y);m--;)scanf("%d",&a),k+=(A[a]?0:++A[a]);for(;i0));}for(;x