#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#define int double
using namespace std;

signed main() {
	int a, b, c, d;
	cin >> a >> b >> c >> d;
	vector<int>e(a);
	for (int f = 0; f < a; f++)cin >> e[f];
	int n = d;
	int m = b;
	int s = d / b;
	sort(e.begin(), e.end());
	for (int g =a-1; g!=-1; g--) {
		if (s < e[g] / c) { n += e[g]; m += c; s = n / m;}
	}
	cout << (signed)s << endl;
}