#include <bits/stdc++.h>
using namespace std;

int main() {
    int n, a, b, c[105], ans = 0, sum;
    cin >> n >> a >> b >> sum;
    for(int i=0;i<n;i++){
        cin >> c[i];
    }
    sort(c,c+n);
    reverse(c,c+n);
    for(int i=0;i<n;i++){
        sum += c[i];
        ans = max(ans, sum/(a+b*(i+1)));
    }
    cout << ans << endl;
    return 0;
}
