#include<stdlib.h>
#include<iostream>
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<algorithm>
#include<cstring>
#include<time.h>
#include<queue>
using namespace std;

int t[101];
int main(){
	int n;
	double a,b,c,cal,pr;
	cin>>n;
	cin>>a>>b;
	cin>>c;
	for(int i=0;i<n;i++){
		cin>>t[i];
	}
	std::sort(t,t+n);
	cal=c;pr=a;
	for(int i=n-1;i>=0;i--){
		if(cal/pr<=t[i]/b){
			cal+=t[i];
			pr+=b;
		}
	}
	cout<<(int)(cal/pr)<<endl;
	return 0;
}	