#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  int array;
  int topNo, priceA, priceB, calorie;
  int calorieSum, priceSum;
  vector<int> topping;
  cin >> topNo;
  cin >> priceA >> priceB;
  cin >> calorie;
  for (int i = 0; i < topNo; i++) {
    cin >> array;
    topping.push_back(array);
  }
  sort(topping.begin(), topping.end(), greater<int>());
  calorieSum = calorie;
  priceSum = priceA;
  double greatestPizza, MAX = 0;
  for (int i = 0; i < topNo; i++) {
    calorieSum += topping[i];
    priceSum += priceB;
    greatestPizza = calorieSum / priceSum;
    if (greatestPizza > MAX) {
      MAX = greatestPizza;
    } else
      break;
  }
  int output;
  output = MAX;
  cout << output << endl;
  ;
  return 0;
}
