#include <stdio.h>

int main(){
	int temp,i,j,n,costA,costB,calA;
	int *p;
	scanf("%d",&n);
	
	p = (int)malloc(sizeof(int)*n);
	
	scanf("%d %d", &costA, &costB);
	scanf("%d", &calA);

	for(i = 0; i < n; i++){
		scanf("%d",&p[i]);
	}

	for(i = 0; i < n-1; i++){
		for(j = n - 1; j > i; j--){
			if(p[j-1] < p[j]){
				temp = p[j];
				p[j] = p[j-1];
				p[j-1] = temp;
			}
		}
	}

	temp = p[0];
	for(i = 1; i < n; i++){
		temp += p[i];
		if((temp - p[i] + calA)/(i*costB) > (temp+ calA)/((i+1)*costB+ costA)) break;
	}
	printf("%d\n", (temp + calA) / ( (i+1) * costB + costA));

	return 0;
}