#include<iostream>
#include<algorithm>
#include<map>

#define MAX	300

using namespace std;



int main(void)
{
	int n;
	int a , b;
	int pizza;
	//今までの最高値を格納
	double ans = 0;

	int top[MAX];

	cin >> n;
	cin >> a >> b >> pizza;

	for (int i = 0; i < n; i++)
	{
		cin >> top[i];
	}

	sort(top , top + n , greater<int>());

	//初期値
	ans = pizza / a;

	//貪欲法
	
	for (int i = 0; i < n; i++)
	{
		a += b;
		pizza += top[i];
		ans = max(ans , (double)pizza / a);
	}

	cout << (int)ans << endl;

	return 0;
}