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

int main() {
	int N, A, B, C, ans = 0;
	cin >> N >> A >> B >> C;
	vector<int> D(N);
	for (int& i : D) cin >> i;
	sort(D.begin(), D.end(), greater<int>());
	for (int i = 1; i < N; ++i) D[i] += D[i - 1];
	for (int i = 0; i < N; ++i) ans = max((C + D[i]) / ((1 + i) * B + A), ans);
	cout << ans << endl;
}
