#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, pa, pb, ca, *cb, pt, ct, per;
  cin >> n >> pa >> pb >> ca;
  cb = new int[n];
  for (int i = 0; i < n; i++) {
    cin >> cb[i];
  }
  for (int i = 1; i < n; i++) {
    if (cb[i - 1] < cb[i]) {
      per = cb[i - 1];
      cb[i - 1] = cb[i];
      cb[i] = per;
      i = 1;
    }
  }
  pt = pa;
  ct = ca;
  per = ct / pt;
  for (int i = 0; i < n; i++) {
    if ((ct + cb[i]) / (pt + pb) > per) {
      pt += pb;
      ct += cb[i];
      per = ct / pt;
      cout << per << endl;
    }
  }
  cout << per << endl;
  return 0;
}
