#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a, b;
  cin >> a >> b;
  int calA;
  cin >> calA;
  int cost = a;
  int cal = calA;
  vector<int> topp;
  for (int i = 0; i < (n); i++) {
    int x;
    cin >> x;
    topp.push_back(x);
  }
  sort((topp).begin(), (topp).end());
  reverse((topp).begin(), (topp).end());
  for (int i = 0; i < (topp.size()); i++) {
    if (cal / cost < (cal + topp[i]) / (cost + b)) {
      cal += topp[i];
      cost += b;
    } else
      break;
  }
  cout << (int)(cal / cost) << endl;
  return 0;
}
