#include<iostream>
#include<algorithm>
#include<functional>
using namespace std;

int main(){
	int n,a,b,c;
	int d[100];
	cin>>n>>a>>b>>c;
	for(int i=0;i<n;i++)cin>>d[i];
	sort(d,d+n,greater<int>());
	int ans=c/a;
	for(int i=0;i<n;i++){
		c+=d[i];
		a+=b;
		ans=max(ans,c/a);
	}
	cout<<ans<<endl;
	return 0;
}