#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;

int main() {
  int n, a, b, c;
  cin >> n >> a >> b >> c;

  vector<int> d(n);

  for (int &topping : d) {
    cin >> topping;
  }

  sort(d.begin(), d.end());
  reverse(d.begin(), d.end());

  int answer = 0;
  for (int use = 0; use <= n; use++) {
    int sum = c;
    if (use > 0) {
      for (int i = 0; i < use; i++) {
        sum += d[i];
      }
    }

    answer = max(answer, sum / (a + b * use));
  }
  cout << answer << endl;
}