#include <bits/stdc++.h>
using namespace std;
int n, a, b, c;
int d[105];
int sum;
int saishou = 0;
void findmin(int i, int r, int m) {
  int e = 0;
  if (r * m) e = (m + c) / (a + b * r);
  if (e > saishou && r * m > 0) {
    saishou = e;
  }
  if (i >= n) return;
  findmin(i + 1, r, m);
  findmin(i + 1, r + 1, m + d[i]);
}
int main() {
  cin >> n;
  cin >> a >> b;
  cin >> c;
  for (int i = 0; i < n; i++) {
    cin >> d[i];
  }
  findmin(0, 0, 0);
  cout << saishou << endl;
}
