#include <stdio.h>
#include <algorithm>
using namespace std;


int main(){
	int N,A,B,C,array[100],i,result = 0,kari;
	scanf("%d",&N);
	scanf("%d %d",&A,&B);
	scanf("%d",&C);
	for(i = 0;i < N;i++) scanf("%d",&array[i]);
	sort(array,array + N);
	reverse(array,array + N);
	for(i = 0;i < N;i++){
		kari = C / (A + B * i);
		if(kari > result) result = kari;
		C+=array[i];
	}
	printf("%d\n",result);
	return 0;
}