#include<bits/stdc++.h>
using namespace std;
int main(){
  int N,A,B,C;
  int D[101];
  cin>>N;
  cin>>A>>B;
  cin>>C;
  
  for(int i=0;i<N;i++){
    cin>>D[i];
  }
  
  sort(D,D+N,greater<int>());
  
  int ans=-1;
  int sum=C;
  for(int i=0;i<N;i++){
    sum+=D[i];
    ans=max(ans,sum/(A+(i+1)*B));
  }
  cout<<ans<<endl;
}