#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,a,b,c,ans,kari;
  cin >> n >> a >> b >> c;
  int d[n];
  for(int i = 0;i < n;i++) cin >> d[i];
  sort(d,d+n);
  reverse(d,d+n);
  c += d[0];
  ans = c/(a+b);
  for(int i = 1;i < n;i++){
    c += d[i];
    if(ans < c/(a+b*(i+1)) ){
      ans = c/(a+b*(i+1));
    }
  }
  cout << ans << endl;
  return 0;
}