#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main() {
	int n;
	double a, b, c;
	vector<double>l;
	cin >> n >> a >> b >> c;
	for (double i = 0; i < n; i++){
		double k;
		cin >> k;
		l.push_back(k);
	}
	sort(l.begin(), l.end());
	double maxc, nc, nd;
	nc = c;
	nd = a;
	maxc = c / a;
	for (int i = 1; i < n + 1; i++){
		nc += l[n - i];
		nd += b;
		maxc = max(nc / nd, maxc);
	}
	cout << (int)maxc << endl;
	return 0;
}