#include<iostream>
#include<algorithm>
using namespace std;
int main(){
	int n,a,b,cal,ans=0,tcal[101],Scal,sum;
	double pcal[101],scal;
	cin>>n>>a>>b>>cal;
	for(int i=0;i<n;i++){
		cin>>tcal[i];
		pcal[i]=tcal[i]/b*1.0;
	}
	sort(tcal,tcal+n,greater<int>());
	for(int i=0;i<n;i++){
		scal=cal;
		sum=a;
		for(int j=0;j<i;j++){
			scal+=tcal[j];
			sum+=b;
		}
		Scal=scal/sum;
		ans=max(ans,Scal);
	}
	cout<<ans<<endl;
return 0;
}