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

int main()
{
	int n, a, b, c;
	vector<int> add;
	
	scanf("%d%d%d%d", &n, &a, &b, &c);
	add.resize(n);
	for(int i = 0; i < n; ++i) {
		scanf("%d", &add[i]);
	}
	
	sort(add.begin(), add.end());
	
	int cal = c;
	int cost = a;
	
	for(int i = n - 1; i >= 0; --i) {
		if((cal / cost) <= (cal + add[i]) / (cost + b))
			cal += add[i], cost += b;
		else
			break;
	}
	
	printf("%d\n", cal / cost);
	
	return 0;
}