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

using namespace std;

#define rep(i,n) for(int i=0;i<int(n);i++)
#define reps(i,n) for(int i=1;i<=int(n);i++)

int main(){
	
	
	int n,a,b,c;
	cin>>n>>a>>b>>c;
	
	int sina[111];
	rep(i,n)cin>>sina[i];
	
	sort(sina,sina+n);
	reverse(sina,sina+n);
	
	rep(i,n){
		double val = (double)c/a;
		double nextval = (double)(c+sina[i])/(a+b);
		
		if(val<nextval){
			a+=b;
			c+=sina[i];
		}
	}
	
	printf("%d\n",c/a);
}