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

const int MAX_N = 100;
int d[MAX_N];

int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	
	int n;
	cin >> n;
	
	int a, b;
	cin >> a >> b;
	
	int c;
	cin >> c;
	
	for(int i = 0; i < n; ++i){
		cin >> d[i];
	}
	
	sort(d, d + n, greater<int>());
	
	int sum = c;
	int ans = c / a;
	for(int i = 0; i < n; ++i){
		sum += d[i];
		ans = max(ans, sum / (a + b * (i + 1)));
	}
	
	cout << ans << endl;
	
	return 0;
}