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

int main()
{
	int n,a,b,c;
	cin>>n>>a>>b>>c;
	int *d;
	d=new int[n];
	
	for(int i=0;i<n;i++){cin>>d[i];}
	
	int cal=c/a;
	
	sort(d,d+n,greater<int>());
	
	for(int i=0;i<n;i++){
		a+=b;
		c+=d[i];
		if(cal<c/a){cal=c/a;}
	}
	
	cout<<cal<<endl;
	delete [] d;
	return 0;
}