#include <bits/stdc++.h>
using namespace std;
int ans, sum, n, a, b, c, pp;
vector<int> piza;
int main() {
  cin >> n >> a >> b >> c;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    piza.push_back(a);
  }
  sort(piza.begin(), piza.end());
  sum = piza[n - 1] + c;
  ans = sum / (a + b);
  pp = 2;
  for (int i = n - 2; i >= 0; i--) {
    sum += piza[i];
    if (ans < sum / (a + b * (pp)))
      ans = sum / (a + b * (pp++));
    else
      break;
  }
  cout << ans << endl;
  return 0;
}
