#include <bits/stdc++.h>
using namespace std;
int main() {
  multiset<int, greater<int> > s;
  int n;
  int a, b;
  int p;
  int d;
  int ans;
  int div = 0;
  cin >> n;
  cin >> a >> b;
  cin >> p;
  ans = p;
  for (int i = 0; i < n; ++i) {
    cin >> d;
    s.insert(d);
  }
  multiset<int, greater<int> >::iterator it = s.begin();
  if ((double)((*it) / b) > (double)(ans / a)) {
    ans += *it;
    ++div;
  }
  ++it;
  if ((double)((*it) / b) > (double)(ans / (a + div * b))) {
    ans += *it;
    ++div;
  }
  cout << ans / (a + div * b) << endl;
}
