#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, A, B, C;
  cin >> N >> A >> B >> C;
  vector<int> toppings(N);
  for (int i = 0; i < N; i++) cin >> toppings[i];
  sort(toppings.begin(), toppings.end(), greater<int>());
  int best = 0;
  for (int x = 0; x <= N; x++) {
    int calory = C + accumulate(toppings.begin(), toppings.begin() + x, 0);
    int cost = A + B * x;
    best = max(best, calory / cost);
  }
  cout << best << endl;
}
