#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b, c, d = 0, max = 0, t[101], hi;
  cin >> n >> a >> b >> c;
  for (int i = 1; i <= n; i++) {
    cin >> t[i];
  }
  for (int j = 1; j <= n - 1; j++) {
    for (int i = 1; i <= n - 1; i++) {
      if (t[i] < t[i + 1]) {
        int tmp;
        tmp = t[i];
        t[i] = t[i + 1];
        t[i + 1] = tmp;
      }
    }
  }
  for (int i = 1; i <= n; i++) {
    d += t[i];
    hi = (c + d) / (a + b * i);
    if (hi > max)
      max = hi;
    else
      break;
  }
  printf("%d\n", max);
  return 0;
}
