#include <cstdio>
#include <vector>
#include <algorithm>
#include <functional>
using namespace std;

int main(){
	int n, a, b, c, ans;
	scanf("%d%d%d%d",&n,&a,&b,&c);
	vector<int> v(n);
	for(int i = 0; i < n; i++) scanf("%d", &v[i]);
	sort(v.begin(),v.end(),greater<int>());
	for(int i = 1; i < n; i++) v[i] += v[i-1];
	ans = c/a;
	for(int i = 0; i < n; i++) ans = max(ans,(c+v[i])/(a+b*(i+1)));
	printf("%d\n", ans);
}