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

int k, n, a, b, c;
ll t[1 << 17], d[1 << 17];

int main()
{
    cin >> n >> a >> b >> c;
    vector<int> v(n);
    int ans = a / c;
    for (int i = 0; i < n; i++)
    {
        cin >> v[i];
    }
    sort(v.rbegin(), v.rend());
    int sum = c;
    for (int i = 0; i < n; i++)
    {
        int m = a + b * (i + 1);
        sum += v[i];
        ans = max(ans, sum / m);
    }
    cout << ans << endl;
}

