#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

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