#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int kcos, scos;
  int kcal;
  int scal[100 + 10] = {0};
  int i;
  int scsum = 0;
  int mcal;
  cin >> n;
  cin >> kcos >> scos;
  cin >> kcal;
  mcal = kcal / kcos;
  for (i = 0; i < n; i++) {
    cin >> scal[i];
  }
  sort(scal, scal + n);
  for (i = n - 1; i >= 0; i--) {
    scsum += scal[i];
    if (mcal < (kcal + scsum) / (kcos + (scos * (n - i)))) {
      mcal = (kcal + scsum) / (kcos + (scos * (n - i)));
    } else
      break;
  }
  cout << mcal << endl;
  return 0;
}
