#include<iostream>
#include<string>
#include<algorithm>	
#include<cmath>
using namespace std;
int main() {
	long long n, a, b, c, sum = 0; cin >> n >> a >> b >> c;
	int d[101] = { 0 };
	for (int h = 0; h < n; h++) {
		cin >> d[h];
	}
	sort(d, d + n);
	for (int h = n - 1; h >= 0; h--) {
		if ((c + d[h]) / (a + (sum + 1)*b) >= c / (a + sum * b)) {
			c += d[h]; sum++;
		}
		else {
			cout << c / (a + sum * b) << endl;
			cin >> n; return 0;
		}
	}
	cin >> n;
}
