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

int main() {
	int n, a, b, c, d[10000];
	cin >> n;
	cin >> a >> b;
	cin >> c;
	for(int i = 0; i < n; i++)
		cin >> d[i];
		
	int pizza = c;
	int best = c / a;
	sort(d, d + n, greater<int>());
	for(int i = 0; i < n; i++){
		pizza += d[i];
		best = max(best, pizza / (a + (i + 1) * b));
	}
	
	cout << best << endl;
	
	return 0;
}