#include<iostream>
#include<algorithm>
using namespace std;
static const int MAX_N = 100;

int N;
double A, B, C;
double D[MAX_N];

int main(){
	cin >> N;
	cin >> A >> B >> C;
	for(int i = 0; i < N; i++) cin >> D[i];
	sort(D, D + N);
	reverse(D, D + N);
	double ans = C / A;
	double sum_p = A, sum_c = C;
	for(int i = 0; i < N; i++){
		sum_p += B;
		sum_c += D[i];
		ans = max(ans, sum_c / sum_p);
	}
	cout << (int)ans << endl;
}
