#include<iostream>
#include<algorithm>
using namespace std;
int main(){
    int n,a,b,c;
    cin>>n>>a>>b>>c;
    int d[10001];
    for(int i=0;i<n;i++)
        cin>>d[i];
    sort(d,d+n);
    int cal=0,co=0;
    for(int i=n-1;i>=0;i--)
        if((double)(cal+d[i]+c)/((co+1)*b+a)>(double)(cal+c)/(co*b+a))
            cal+=d[i],co++;
        else
            break;
    cout<<(cal+c)/(co*b+a)<<endl;
}