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

using pii = pair<int, int>;
using vi = vector<int>;
using ll = long long;

int main() {
    int N, A, B, C;
    cin >> N >> A >> B >> C;
    vector<int> D(N);
    for(int i = 0; i < N; ++i) {
        cin >> D[i];
    }
    sort(D.rbegin(), D.rend());
    double ans = (double)C / A;
    int total = C;
    for(int i = 1; i <= N; ++i) {
        total += D[i - 1];
        ans = max(ans, (double)total / (i * B + A));
    }
    cout << (int)ans << endl;
}
