//51
#include<iostream>
#include<algorithm>

using namespace std;

int main(){
  int n,a,b,c;
  cin>>n>>a>>b>>c;
  int d[10000];
  for(int i=0;i<n;i++){
    cin>>d[i];
  }
  sort(d,d+n,greater<int>());
  int s=c;
  int p=a;
  for(int i=0;i<n;i++){
    if((s+d[i])*1./(p+b)>s*1./p){
      s+=d[i];
      p+=b;
    }else{
      break;
    }
  }
  cout<<s/p<<endl;
  return 0;
}