#include <iostream>
#include <algorithm>
using namespace std;
int main() {
	int n, a, b, c, d[1000] = { 0 }, p = 0, ans = 0;
	cin >> n >> a >> b >> c;
	for (int i = 0; i < n; i++) cin >> d[i];
	sort(d, d + n);
	p = c;
	int w = 1;
	for (int i = n - 1; i >= 0; i--) {
		p += d[i];
		if (ans < p / (a + b*w)) ans = p / (a + b*w);
		w++;
	}
	cout << ans << endl;
	return 0;
}