#include<bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<(n);i++)
#define pb push_back
#define all(v) (v).begin(),(v).end()
typedef vector<int>vint;
typedef pair<int,int>pint;

int N,A,B,X,Y[100];

signed main(){
    cin>>N>>A>>B>>X;
    rep(i,N)cin>>Y[i];
    sort(Y,Y+N);reverse(Y,Y+N);

    int s=X,t=A,cur=0;
    while(cur<N){
        if(s*(t+B)>(s+Y[cur])*t)break;
        s+=Y[cur++];
        t+=B;
    }
    cout<<s/t<<endl;
    return 0;
}

//s/t s+Y[cur]/t+B