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

int main(){
		
		int n;
		int a, b, c;
		int x[101];
		int i;
		int cal;
		int val;
		int ans;
		
		cin>>n>>a>>b>>c;
		
		for(i=0; i<n; i++)
			cin>>x[i];
			
		sort(x, x+n, greater<int>());
		cal=c;
		val=cal/a;
		
		for(i=0; i<n; i++){
				cal+=x[i];
				ans=cal/(b*(i+1)+a);
				if(val>ans)
					break;
					
				val=ans;
		}
		
		cout<<val<<endl;
			
	return 0;
}