#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> v(n);
	for (int i = 0; i < n; ++i) cin >> v[i];
	sort( v.begin(), v.end(), greater<int>() );

	int price = A, cal = C;
	for (int i = 0; i < v.size(); ++i) {
		if ((cal+v[i])/(price+B) >= cal/price) {
			price += B, cal += v[i];
		}
	}
	cout << cal/price << endl;
}