#include <bits/stdc++.h>
using namespace std;
int n, a, b, c, x[109];
int main() {
	cin >> n >> a >> b >> c;
	for(int i = 0; i < n; i++) cin >> x[i];
	sort(x, x + n, greater<int>());
	int ret = 0, sum = 0;
	for(int i = 1; i <= n; i++) {
		sum += x[i - 1];
		ret = max(ret, (c + sum) / (a + i * b));
	}
	cout << ret << endl;
	return 0;
}