#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;

int N;
int A, B, C, D[100] = {};
int main() {
	cin >> N >> A >> B>>C;
	for (int i = 0; i < N; i++) {
		cin >> D[i];
	}

	sort(D, D + N);
	reverse(D, D + N);

	int ans = 0;
	for (int i = 0; i < N; i++) {
		int tmp = 0;
		for (int j = 0; j < i; j++) {
			tmp += D[j];
		}

		tmp = (tmp + C) / (A + B*i);
		if (ans < tmp) ans = tmp;
	}

		

	cout << ans << endl;
	
	
	
	return 0;
	
}