#include <bits/stdc++.h>
int arr[10001];
using namespace std;
int main() {
    int n, p1, p2, cal, ans;
    std::scanf("%d", &n);
    scanf("%d %d", &p1, &p2);
    scanf("%d", &cal);
    for (int i = 0; i < n; i++) scanf("%d", &arr[i]);
    sort(arr, arr+n, greater<int>());
    ans = cal / p1;
    for (int i = 0; i < n; i++) {
        ans = max(ans, (cal + arr[i]) / (p1+p2));
        cal+=arr[i], p1+=p2;
    }
    printf("%d\n", ans);
    return 0;
}

