#include <bits/stdc++.h>
using namespace std;
int max_calory = 0;
int N, A, B, C;
vector<int> topping;
void solve() {
  cin >> N;
  cin >> A >> B;
  cin >> C;
  for (int i = 0; i < N; ++i) {
    int price;
    cin >> price;
    topping.push_back(price);
  }
  sort(topping.begin(), topping.end(), greater<int>());
  int calory = C;
  int cost = A;
  max_calory = C / A;
  int item = 0;
  while (true) {
    calory += topping[item];
    cost += B;
    if (calory / cost > max_calory) {
      max_calory = calory / cost;
    } else {
      break;
    }
    ++item;
  }
  cout << max_calory << endl;
}
int main() {
  solve();
  return (0);
}
