#include <iostream>
#include <algorithm>
#include <vector>

void solve() {
    int n, a, b, c;
    std::cin >> n >> a >> b >> c;

    std::vector<int> xs(n);
    for (auto& x : xs) std::cin >> x;
    std::sort(xs.rbegin(), xs.rend());

    int ans = c / a;
    for (auto x : xs) {
        c += x;
        a += b;
        ans = std::max(ans, c / a);
    }

    std::cout << ans << std::endl;
}

int main() {
    std::cin.tie(nullptr);
    std::ios::sync_with_stdio(false);

    solve();

    return 0;
}

