#include <bits/stdc++.h>
using namespace std;
signed main() {
  double a, b, c, d;
  cin >> a >> b >> c >> d;
  vector<double> e(a);
  for (double f = 0; f < a; f++) cin >> e[f];
  double n = d;
  double m = b;
  double s = d / b;
  sort(e.begin(), e.end());
  for (double g = a - 1; g != -1; g--) {
    if (s < e[g] / c) {
      n += e[g];
      m += c;
      s = n / m;
    }
  }
  cout << (signed)s << endl;
}
