#include<stdio.h>
int main(void)
{
    int n,a,b,c;
    int cal[10000]={0};
    int i,j;
    int x,z;
    int rui=0,masa = 0;
 
    scanf("%d%d%d%d",&n,&a,&b,&c);
    for(i = 0;i < n; i++) scanf("%d",&cal[i]);
 
    for(i = 0;i < n; i++){
        for(j = 0;j < n; j++){
            if(cal[i] > cal[j]){
                x = cal[i];
                cal[i] = cal[j];
                cal[j] = x;
            }
        }
    }
    z = c;
    rui = c/a;
    for(i = 1;i <= n; i++){
        z += cal[i-1];
        amsa = z / ((b*i)+a);
        if(rui <=masa){
        rui = masa;
        }
        else{
        break;
        }
    }
    printf("%d\n",rui);
    return 0;
}