#include <bits/stdc++.h>
using namespace std;
template <class T, class C>
void chmax(T& a, C b) {
  if (a < b) a = b;
}
template <class T, class C>
void chmin(T& a, C b) {
  if (b < a) a = b;
}
template <class T, class C>
pair<T, C> mp(T a, C b) {
  return make_pair(a, b);
}
template <class T>
void MSG(T a) {
  cout << "a"
       << " = " << a << endl;
}
int main() {
  int n, a, b, c;
  cin >> n >> a >> b >> c;
  vector<int> d(n);
  for (int i = 0; i < n; i++) cin >> d[i];
  sort(d.begin(), d.end(), greater<int>());
  for (int i = 0; i < n; i++) {
    if ((c + d[i]) / (a + b) > c / a)
      c += d[i], a += b;
    else
      break;
  }
  cout << c / a << endl;
}
