#include<stdio.h>
#include<algorithm>
#include<functional>
using namespace std;
int main(void)
{
	int i,n,a,b,ac,bc[101],s[101];
	scanf("%d",&n);
	scanf("%d %d",&a,&b);
	scanf("%d",&ac);
	s[1]=ac;
	for(i=1;i<=n;i++){
		scanf("%d",&bc[i]);
	}
	
	sort(bc+1,bc+n+1,greater<int>());
	for(i=1;i<=n;i++){
		s[i+1]=s[i]+bc[i];
	}
	s[1]=s[1]/a;
	for(i=2;i<=n+1;i++){
		s[i]=s[i]/(a+(b*(i-1)));
	}
	sort(s+1,s+n+2,greater<int>());
	printf("%d\n",s[1]);
	return 0;
}
	