#include<algorithm>
#include<iostream>
using namespace std;
int main(){
  int i;
  int n,a,b,c;
  cin>>n>>a>>b>>c;
  int d[100];
  for(i=0;i<n;++i)
    cin>>d[i];
  sort(d,d+n,greater<int>());
  for(i=0;i<n;++i){
    if(c*(a+b)>(c+d[i])*a)
      break;
    c+=d[i];
    a+=b;
  }
  cout<<(int)((double)c/a)<<endl;
  return 0;
}