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

int N, A, B, C, D[100];

int main(){
	cin >> N >> A >> B >> C;
	for(int i = 0;i < N;i++) cin >> D[i];
	sort(D, D + N);
	int ans = C / A, c = C;
	for(int k = 0;k < N;k++){
		c += D[N - k - 1];
		ans = max(ans, c / (A + (k + 1) * B));
	}
	cout << ans << endl;
	return 0;
}