#include <iostream>
using namespace std;

int main(){
	int n,pa,pb,ca,*cb,pt,ct;
	
	cin >> n >> pa >> pb >> ca;
	cb = new int[n];
	
	for(int i=0; i<n; i++){
		cin >> cb[i];
	}
	
	for(int i=1; i<n; i++){
		if(cb[i] > cb[i-1]){
			ct = cb[i-1];
			cb[i-1] = cb[i];
			cb[i] = ct;
			i=0;
		}
	}
	
	pt = pa;
	ct = ca;
	
	for(int i=0; i<n; i++){
		if(ct/pt <= (ct+cb[i])/(pt+pb)){
			ct += cb[i];
			pt += pb;
		}else{
			break;
		}
	}
	
	cout << ct/pt << endl;
	
	return 0;
}