#include <bits/stdc++.h>
using namespace std;
int main() {
  int max = 0;
  int n, a, b, c;
  int d[100];
  cin >> n;
  cin >> a >> b;
  cin >> c;
  for (int i = 0; i < n; i++) cin >> d[i];
  int sum = c, ans, temp;
  for (int j = n - 1; j >= 0; j--) {
    for (int i = 0; i <= j; i++) {
      if (d[i + 1] < d[i]) {
        temp = d[i];
        d[i] = d[i + 1];
        d[i + 1] = temp;
      }
    }
  }
  int wari;
  for (int i = 0; i < n; i++) {
    wari = b * i + a;
    if (i != 0) sum += d[n - i];
    ans = sum / wari;
    if (ans > max) max = ans;
  }
  cout << max << endl;
}
