#include <iostream>
#include <algorithm>
using namespace std;

int main(){
	int n, a, b, c;
	int d[101];
	
	cin >> n >> a >> b >> c ;
	for(int i=0 ; i < n ; i++ ){
		cin >> d[i];
	}
	sort( d , d+n );
	
	double ans = 0;
	int price, cal, now_price, now_cal;
	price = now_price = a;
	cal = now_cal = c;
	for(int i=n-1 ; i >= 0 ; i-- ){
		now_price += b;
		now_cal += d[i];
		if( (double)cal / price < (double)now_cal / now_price ){
			cal = now_cal;
			price = now_price;
		}
	}
	cout << cal / price << endl;
}