#include<iostream>
using namespace std;
int d[10000];
int main()
{
	int T,N,A,B,C;
	int maxk=0;
	int K;	//????????????
	int M;	//??????
	cin >> N;
	cin >> A >> B;
	cin >> C;
	K = C;
	M = A;
	
	for(int i=0;i<N;i++)
		cin >> d[i];
	for(int i=0;i<N-1;i++){
		for(int j=i+1;j<N;j++){
			if(d[i] < d[j]){
				T = d[i];
				d[i] = d[j];
				d[j] = T;
			}
		}
	}
	
	maxk = K / M;
	for(int i=0;i<N;i++){
		K += d[i];
		M += B; 
		if(maxk < K/M)
			maxk = K/M;
	}
	cout << maxk << endl;
	return 0;
}