#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int A, B;
  cin >> A >> B;
  int C;
  cin >> C;
  vector<int> v(n);
  for (int i = 0; i < n; ++i) cin >> v[i];
  sort(v.begin(), v.end(), greater<int>());
  int price = A, cal = C;
  for (int i : v) {
    if ((cal + i) / (price + B) > cal / price) {
      price += B, cal += i;
    }
  }
  cout << cal / price << endl;
}
