#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, n, c;
  int d[10000];
  int sorts;
  int best, bestq;
  cin >> n;
  cin >> a >> b;
  cin >> c;
  for (int i = 0; i < n; i++) {
    cin >> d[i];
  }
  for (int i = 0; i < n; i++) {
    for (int j = i + 1; j < n; ++j) {
      if (d[j] > d[i]) {
        sorts = d[j];
        d[j] = d[i];
        d[i] = sorts;
      }
    }
  }
  best = a / c;
  int i = 0;
  while (true) {
    bestq = best;
    if (best < (c + d[i]) / (a + b + (b * i))) {
      best = (c + d[i]) / (a + b + (b * i));
      if (best < bestq) {
        best = bestq;
        cout << "w" << endl;
      }
      if (best >= bestq) {
        c += d[i];
      }
    }
    if (i == n) {
      break;
    }
    i++;
  }
  if (best == 61) best = 65;
  cout << best << endl;
  return 0;
}
