#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int main() {
  int a,b,c,n;
  cin>>n>>a>>b>>c;
  vector<int> cal(n);
  for (int i=0; i<n; ++i) cin>>cal[i];
  sort(cal.begin(), cal.end(), greater<int>());
  double ans = (double)c/a;
  int csum = c, psum = a;
  for (int i=0; i<n; ++i) {
    csum += cal[i];
    psum += b;
    ans = max(ans, (double)csum/psum);
  }
  cout<<(int)ans<<endl;
}