#include<stdio.h>
#include<algorithm>
using namespace std;
int e[1100];
int main(){
	int a;scanf("%d",&a);
	int b,c;scanf("%d%d",&b,&c);
	int d;scanf("%d",&d);
	for(int i=0;i<a;i++){
		scanf("%d",e+i);
	}
	std::sort(e,e+a);
	int ret=d/b;
	int now=d;
	int cost=b;
	for(int i=a-1;i>=0;i--){
		now+=e[i];
		cost+=c;
		ret=max(ret,now/cost);
	}
	printf("%d\n",ret);
}