#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main(){
	ios_base::sync_with_stdio(false);
	int n,A,B,C;
	cin >> n;
	cin >> A >> B >> C;
	vector<int> v;
	for(int i = 0 ; i < n ; i++){
		int in; cin >> in;
		v.push_back(in);
	}
	sort(v.rbegin(),v.rend());
	int price = A , cal = C;
	double maxCal = (double)cal / price;
	
	for(int i = 0 ; i < n ; i++){
		price += B;
		cal   += v[i];
		maxCal = max( maxCal , (double)cal / price ) ;
	}
	cout << (int)(maxCal+1e-10) << endl;
}