#include <bits/stdc++.h>
using namespace std;
int cal[10005];
int main() {
  int n, a, b, c;
  cin >> n >> a >> b >> c;
  for (int i = 0; i < n; i++) {
    cin >> cal[i];
  }
  sort(cal, cal + n);
  reverse(cal, cal + n);
  int sumcal = c, sumdol = a;
  double cado = sumcal / sumdol;
  for (int i = 0; i < n; i++) {
    sumcal += cal[i];
    sumdol += b;
    double d = sumcal / sumdol;
    if (d >= cado) {
      cado = d;
    } else {
      cado = d;
      break;
    }
  }
  cado = floor(cado);
  int ca = cado;
  cout << ca << endl;
  return 0;
}
