#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, n, d[10000], m, date, i, j;
  cin >> n >> a >> b >> c;
  for (i = 0; i < n; i++) {
    cin >> d[i];
  }
  date = c / a;
  for (i = 0; i < n; i++) {
    m = (c + d[i]) / (a + b);
    if (m > date) {
      date = m;
    }
    for (j = 0; j < n; j++) {
      if (i != j) {
        m = (c + d[i] + d[j]) / (a + 2 * b);
        if (m > date) {
          date = m;
        }
      }
    }
  }
  cout << date << endl;
  return 0;
}
