#include<iostream>
using namespace std;
int main(){
	int n,a,b,c,toping[1001],i,i2,toread,max=0,p,q;
	cin>>n>>a>>b>>c;
	for(i=1;i<=n;i++){
		cin>>toping[i];
	}
	for(i=1;i<=n;i++){
		for(i2=1;i2<=n;i2++){
			if(toping[i]>toping[i2]){
				toread=toping[i];
				toping[i]=toping[i2];
				toping[i2]=toread;
			}
		}
	}
	for(i=1;i<=n;i++){
		q=0;
		for(i2=1;i2<=i;i2++){
			q+=toping[i2];
		}
		q+=c;
		q/=(a+b*i);
		if(max<q){
			max=q;
		}
	}
	cout<<max<<endl;
}