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

using namespace std;

int main()
{
	for(int n;cin>>n;){
		int bp,tp; cin>>bp>>tp;
		int bc; cin>>bc;
		vector<int> tcs(n);
		for(int i=0;i<n;i++)
			cin>>tcs[i];
		sort(tcs.begin(),tcs.end(),greater<int>());
		
		int res=bc/bp;
		for(int i=0,j=0;i<n;i++){
			j+=tcs[i];
			res=max(res,(bc+j)/(bp+tp*(i+1)));
		}
		cout<<res<<endl;
	}
	return 0;
}