#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, a, b, c, result, calorie, dollars;
  set<int> d;
  cin >> n >> a >> b >> c;
  for (int i = 0; i < n; i++) {
    int nyuryoku;
    cin >> nyuryoku;
    d.insert(nyuryoku);
  }
  set<int>::reverse_iterator si = d.rbegin();
  calorie = c;
  dollars = a;
  result = calorie / dollars;
  while (si != d.rend()) {
    if (((calorie + *si) / (dollars + b)) > (calorie / dollars)) {
      calorie += *si;
      dollars += b;
      result = calorie / dollars;
    } else
      break;
    si++;
  }
  cout << result << endl;
  return 0;
}
