#include <bits/stdc++.h>
using namespace std;

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

template<class T> T read() {
	T t;
	cin >> t;
	return t;
}

int main(){
	int n = read<int>();
	int a = read<int>(), b = read<int>();
	int c = read<int>();
	int d[n];
	rep(i,n){
		d[i]=read<int>();
	}
	sort(d,d+n,greater<int>());
	
	int cal = c, price = a;
	int ans = cal / price;
	rep(i,n){
		cal += d[i];
		price += b;
		ans = max(ans, cal / price);
	}
	cout << ans << endl;
}