#include <cstdio>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
	int N, A, B, C;
	scanf("%d\n%d %d\n%d\n", &N, &A, &B, &C);

	vector<int> D(N);
	for (int i = 0; i < N; ++i) {
		scanf("%d\n", &D[i]);
	}
	sort(D.rbegin(), D.rend());

	int price = A, calorie = C;
	int res = calorie / price;
	for (int i = 0; i < N; ++i) {
		price += B;
		calorie += D[i];
		int cur = calorie / price;
		if (res > cur) {
			break;
		}
		res = cur;
	}
	printf("%d\n", res);

	return 0;
}