#include<iostream>
#include<queue>

using namespace std;
int money;
priority_queue<int> d;
int n,a,b,c;
int nap[200];

int main()
{
  cin>>n>>a>>b>>c;
  for(int i=0;i<n;i++)
    {
      int t;
      cin >> t;
      d.push(t);
    }
  double ans=c/a;
  int sum_m=a;
  int sum_c=c;
  while(!d.empty())
    {
      int tmp =d.top();d.pop();
      sum_c+=tmp;
      sum_m+=b;
      if(ans<(double)sum_c/sum_m)
	ans=sum_c/sum_m;
      else 
	break;
    }
  //  int ans = nap(a,c,0);
 
  cout<<(int)ans<<endl;
  
}