#include <bits/stdc++.h>

using namespace std;

int main(){

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