#include<cstdio>
#include<iostream>
#include<algorithm>
#define int long long
using namespace std;
int N,A,B,C,D[101],ans,cal;
signed main(){
    cin>>N>>A>>B>>C;
    for(int i=0;i<N;i++){
        cin>>D[i];
    }
    sort(D,D+N);
    reverse(D,D+N);
    ans=C;
    for(int i=0;i<N;i++){
        ans+=D[i];
        cal=max(cal,ans/(A+B*(i+1)));
    }
    cout<<cal<<endl;
    return 0;
}