#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(void){

	int n,a,b,c,d=0,cal=0,cal2=0,d2=0,to=0,an=0;
	int x[1000]={0};
	cin>>n>>a>>b>>c;
	cal+=c;
	cal2=cal;
	d+=a;
	d2=d;
	to=cal/d;
	for(int i=0;i<n;i++){
        cin>>x[i];

	}
	sort(x,x+n);
	for(int i=n-1;i>=0;i--){
        cal2+=x[i];
        d2+=b;
        an=cal2/d2;
        if(an<to)break;
        to=an;
	}
    cout<<to<<endl;

	return 0;
}