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

int main(){
	int n,a,b,c,d[100];
	scanf("%d %d %d %d",&n,&a,&b,&c);
	for(int i = 0;i < n;i++) scanf("%d",&d[i]);
	sort(d,d + n,greater<int>());
	int ma = c / a,sum = c;
	for(int i = 0;i < n;i++){
		sum += d[i];
		ma = max(ma,sum / (a + (i + 1) * b));
	}
	printf("%d\n",ma);
}