#include<cstdio>
#include<cmath>
#include<iostream>
#include<algorithm>
using namespace std;
int main(){
    double bapri,topri,baca,toca[101];
    int N;
    cin>>N>>bapri>>topri>>baca;
    for(int i=0;i<N;i++)cin>>toca[i];
    sort(toca,toca+N);
    double sumpri=bapri,sumca=baca;
    for(int i=N-1;0<=i;i--){
        if(sumca/sumpri<toca[i]/topri)sumca+=toca[i],sumpri+=topri;
        else break;
    }
    printf("%d\n",(int)(sumca/sumpri));
    return 0;
}