#include <iostream>
#include <algorithm>

#define rep(i, n) for(int i = 0; i < (n); ++i)

using namespace std;

int n, a, b, c;
int d[100];

int main(){
	cin >> n >> a >> b >> c;
	rep(i, n){
		cin >> d[i];
	}

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

	int ans = c / a;
	rep(i, n){
		c += d[i];
		a += b;
		ans = max(c / a, ans);
	}
	cout << ans << endl;
	return 0;
}