#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int a, b;
  int c;
  int s[100];
  int x;
  cin >> n;
  for (int i = 1; i < n + 1; i++) s[i] = 0;
  cin >> a >> b;
  cin >> c;
  for (int i = 1; i < n + 1; i++) {
    cin >> s[i];
  }
  for (int i = 1; i < n + 1; i++) {
    for (int j = 2; j < n + 1; j++) {
      if (s[i] < s[j]) {
        x = s[i];
        s[i] = s[j];
        s[j] = x;
      }
    }
  }
  x = c;
  for (int i = 1; i < n + 1; i++) {
    if ((x / a) < ((x + s[i]) / (a + b))) {
      x += s[i];
      a += b;
    }
  }
  cout << x / a << endl;
  return 0;
}
