#include<bits/stdc++.h>
#define N 105
using namespace std;

int main(){
  int n,a,b,c,d[N],sum;
  double ans;
  cin>>n>>a>>b>>c;
  sum=c;
  for(int i=0;i<n;i++)cin>>d[i];
  sort(d,d+n,greater<int>());
  ans=sum/a;
  for(int i=0;i<n;i++){
    sum+=d[i];
    ans=max(ans,1.0*sum/(a+b*(i+1)));
  }
  cout<<(int)ans<<endl;
  return 0;
}