#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int primes[2];
  int pizaKarori;
  int toppings[100];
  int masterK;
  int masterP;
  cin >> n;
  cin >> primes[0];
  cin >> primes[1];
  cin >> pizaKarori;
  masterK = pizaKarori;
  masterP = primes[0];
  for (int i = 0; i < n; i++) {
    cin >> toppings[i];
  }
  for (int j = 0; j < n + 1; j++) {
    for (int i = 0; i < n - 1; i++) {
      if (toppings[i] < toppings[i + 1]) {
        int c;
        c = toppings[i];
        toppings[i] = toppings[i + 1];
        toppings[i + 1] = c;
      }
    }
  }
  for (int i = 0; i < n; i++) {
    if ((masterK) / masterP < (masterK + toppings[i]) / (masterP + primes[1])) {
      masterK += toppings[i];
      masterP += primes[1];
    } else {
      break;
    }
  }
  cout << masterK / masterP << endl;
  return 0;
}
