#include <iostream>
#include <algorithm>
using namespace std;
#define NMAX 100
int N;
int A,B,C;
int topping[NMAX+1];
int main(){
	cin>>N;
	cin>>A>>B;
	cin>>C;
	for(int i=0;i<N;i++){
		cin>>topping[i];
	}
	sort(topping,topping+N);
	int kalory=C;
	int money=A;
	for(int i=N-1;i>=0;i--){
		if((kalory+topping[i])/(money+B)>=kalory/money){
			kalory+=topping[i];
			money+=B;
		}
		else break;
	}
	cout<<kalory/money<<endl;
	return 0;
}