#include <bits/stdc++.h>
int N, A, B, kcal, gcal[100], sta, an;
int main() {
  std::cin >> N >> A >> B >> kcal;
  sta = kcal;
  for (int i = 0; i < N; i++) std::cin >> gcal[i];
  std::sort(gcal, gcal + N, std::greater<int>());
  for (int i = 0; i < N; i++) {
    for (int j = 0; j < i; j++) {
      sta += gcal[j];
    }
    if (an < sta / (A + B * i)) an = sta / (A + B * i);
    sta = kcal;
  }
  return 0;
}
