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

const int INF = 1e9;

int main()
{
	int N, A, B;
	cin >> N >> A >> B;
	vector<int> dp(N + 1, -INF);
	cin >> dp[0];
	for (int i = 0; i < N; i++) {
		int D;
		cin >> D;
		for (int j = i; j >= 0; j--) {
			dp[j + 1] = max(dp[j + 1], dp[j] + D);
		}
	}
	int res = 0;
	for (int i = 0; i <= N; i++) {
		res = max(res, dp[i] / (A + B * i));
	}
	cout << res << endl;
	return 0;
}

