#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, A, B;
  int x;
  cin >> N >> A >> B >> x;
  int y[N];
  for (int i = 0; i < N; i++) {
    cin >> y[i];
  }
  int answer;
  int max = x / A;
  for (int i = 0; i < N; i++) {
    answer = (y[i] + x) / (A + B);
    if (answer >= max) {
      max = answer;
    }
  }
  for (int i = 0; i < N; i++) {
    for (int j = 0; j < N; j++) {
      answer = (y[i] + y[j] + x) / (A + B + B);
      if (answer >= max) {
        max = answer;
      }
    }
  }
  cout << max << endl;
}
