#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;

int cal[10005];

int main() {
	int n, a, b, c;
	cin >> n >> a >> b >> c;
	for (int i = 0; i < n; i++) {
		cin >> cal[i];
	}

	sort(cal, cal + n);
	double sumcal=c,sumdol=a;
	double cado = sumcal / sumdol;

	for (int i = n-1; i>-1; i--) {
		sumcal += cal[i];
		sumdol += b;
		double d = sumcal / sumdol;
		if (d >= cado) { cado = d; }
		else {break;}
	}
	cado = floor(cado);
	int ca = cado;
	cout << ca << endl;
	return 0;
}