#include<stdio.h>
#include<algorithm>
int main()
{
	int N,A,B,C,D[100],i,x=0;
	scanf("%d%d%d%d",&N,&A,&B,&C);
	for(i=0;i<N;++i)scanf("%d",D+i);
	std::sort(D,D+N);
	double r=C*1./A;
	for(i=0;i<N;)x+=D[N-1-i],r=std::max(r,(C+x)*1./(A+B*++i));
	printf("%d\n",(int)r);
	return 0;
}