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