#include <iostream>
using namespace std;

int main()
{
	int n;
	int a,b;
	int c;
	int s[101];
	int x,y;


	cin >> n;
	
	cin >> a >> b;
	cin >> c;

	for(int i=1 ;i<n+1 ;i++){
		cin >> s[i];

	}
	for(int i=1 ;i<n+1 ;i++){
		for(int j=1 ;j<n+1 ;j++){
			if(s[i] > s[j]){
				x = s[i];
				s[i] = s[j];
				s[j] = x;
			}
		}
	}

	x = c;
	y = a;

	for(int i=1 ;i<n+1 ;i++){
		if((x / y) > ((x+s[i])/(y+b)))
			break;

		else{
			x += s[i];
			y += b;
		}
	}
	cout << x / y << endl;
	
             return 0;
}