#include<iostream>
#include<cstdio>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
typedef long long int ll;

int main()
{
    int n,a,b;
	int c;
	int d[100];
	cin >> n >> a >> b >> c;
	for(int i=0;i<n;i++)cin >> d[i];
	sort(d,d+n);
	int ans=c/a;
	int co=c;
	int price=a;
	for(int i=n-1;i>=0;i--){
		co+=d[i];
		price+=b;
		ans=max(ans,co/price);
		//printf("%d\n",ans);
	}
	printf("%d\n",ans);
    return 0;
}