#include <algorithm>
#include <functional>
#include <iostream>
using namespace std;

int main() {
    int N,B_val,total_val,total_ca,ans=0,temp;
    cin>>N;
    int B_ca[N];
    cin>>total_val>>B_val;
    cin>>total_ca;
    for(int i=0 ; i<N ; i++) cin >> B_ca[i];
    sort(B_ca, B_ca + N, greater<int>()); 
    for(int i=0 ; i<N+1 ; i++){
        temp = total_ca/total_val;
        ans = max(ans,temp);
        total_ca += B_ca[i];
        total_val += B_val;
    }
    cout << ans << endl;
	return 0;
}