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

int main() {
	int n, a, b, i, j, c[1000], ans = 0, s, d,k;
	cin >> n >> a >> b >> d;
	for (i = 0; i < n; i++) cin >> c[i];
	sort(c,c+n,greater<int>());
	s = d;
	for (i = 0; i < n; i++) {
		j = i + 1;
		s += c[i];
		k = a + b*j;
		if (s / k > ans) ans = s / k;
	}
	if (d / a > ans) ans = d / a;
	cout << ans << endl;
	cin >> ans;
	return 0;
}
