#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main(){
    ll n,a,max,cal,yen,tui;
    cin>>n>>yen>>tui>>cal;
    vector<ll> v;
    for(int i=0;i<n;i++){
        cin>>a;
        v.push_back(a);
    }

    sort(v.begin(),v.end());
    reverse(v.begin(),v.end());

    max=cal/yen;
    for(int i=0;i<n;i++){
        cal+=v[i];
        yen+=tui;
        if(max<cal/yen)max=cal/yen;
    }

    cout<<max<<endl;
}
