#include<iostream>
#include<algorithm>
#include<string>
#include <vector>

using namespace std;

int main(){

	int n,a,b,c,d[1000],ans;
	int sum=0;

	cin>>n;
	cin>>a>>b;
	cin>>c;

	for(int i=0;i<n;i++){
		cin>>d[i];
	}

	sort (d, d+n, greater<int>());
	ans=c/a;

	for(int i=0;i<n;i++){
		sum=sum+d[i];
		ans=max(ans,(sum+c)/(a+b*(i+1)));
	}

	cout<<ans<<endl;
}