c[100],i;main(A,a,C,n,i,x,r,s){scanf("%d%d%d%d",&n,&A,&a,&C);for(i=0;i<n;i++)scanf("%d",c+i);qsort(c,n,4,"\x8b\6+\7\xc3");for(r=C/A,x=i=0;i<n;i++){x+=c[i];s=(C+x)/(A+a*(i+1));if(s<r)break;r=s;}i=!printf("%d\n",r);}