#include <bits/stdc++.h>
using namespace std;
int a, b, c, k;
int tp[100];
int s(int cal, int d, int t_num) {
  if (t_num == k) {
    return cal / d;
  }
  int no = s(cal, d, t_num + 1);
  int ex = s(cal + tp[t_num], d + b, t_num + 1);
  if (no >= ex)
    return no;
  else
    return ex;
}
int main() {
  cin >> k >> a >> b >> c;
  for (int i = 0; i < k; i++) {
    cin >> tp[i];
  }
  cout << s(c, a, 0) << endl;
  return 0;
}
