#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
    int N;
    ll A, B, C;
    cin >> N >> A >> B >> C;
    vector<ll> D(N);
    for (int i = 0; i < N; i++) {
        cin >> D[i];
    }
    sort(D.begin(), D.end(), greater<ll>());
    ll ans = 0;
    ll s = 0;
    for (int i = 0; i < N; i++) {
        s += D[i];
        ans = max(ans, (C + s) / (A + (i + 1) * B));
    }
    cout << ans << "\n";
    return 0;
}
