#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, n, c;
  int d[10000];
  int sorts;
  int best;
  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;
  for (int i = 0; i < n; i++) {
    if (best < (c + d[i]) / (a + b + (b * i))) {
      best = (c + d[i]) / (a + b + (b * i));
      c += d[i];
    }
  }
  cout << best << endl;
  return 0;
}
