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

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