#include <iostream>
#include <cstdio>
#include <algorithm>
#include <vector>
using namespace std;
int main(){
  int n,pp,tp,i,csum=0,psum=0,ans=0;
  cin>>n>>pp>>tp;
  int pc;
  cin>>pc;
  vector<int>v(n);
  for(i=0;i<n;i++){
    cin>>v[i];
  }
  csum=pc;
  psum=pp;
  sort(v.begin(),v.end());
  for(i=n-1;i>-1;i--){
    csum+=v[i];
    psum+=tp;
    ans=max(ans,csum/psum);
    //cout<<csum/psum<<endl;
  }
  cout<<ans<<endl;
  return 0;
}