#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, money, top;
  double cal;
  cin >> a >> money >> b >> cal;
  vector<int> c(a);
  for (int i = 0; i < a; i++) {
    cin >> c[i];
  }
  for (int i = 0; i < a; i++) {
    for (int j = 0; j < a - i - 1; j++) {
      if (c[i] < c[i + 1]) {
        swap(c[i], c[i + 1]);
      }
    }
  }
  for (int i = 0; i < a; i++) {
    if (cal / money < (cal + c[i]) / (money + b)) {
      cal += c[i];
      money += b;
    }
  }
  int ans = cal / money;
  cout << ans << endl;
}
