#include<iostream>
#include<algorithm>
using namespace std;
int main(){
  int n,ck,ct,ki;
  cin >> n;
  cin >> ck >> ct >> ki;
  int top[n],cost=ck,ans;
  for(int i=0;i<n;i++) cin >> top[i];
  sort(top,top+n,greater<int>());
  ans = ki / cost;
  for(int i=0;i<n;i++){
      ki += top[i];
      cost += ct;
      if(ans<ki/cost) ans = ki / cost;
      //else goto END;
  }
  //END:
  cout << ans << endl;
  return 0;
}