#include <bits/stdc++.h>
using namespace std;
int n, a, b, c, x[100], d, p;
int main() {
  p = 0;
  cin >> n;
  cin >> a >> b;
  cin >> c;
  for (int i = 0; i < n; i++) {
    cin >> x[i];
  }
  d = 0;
  sort(x, x + n, greater<int>());
  p = c / a;
  for (int i = 0; i < n; i++) {
    c += b;
    a += x[i];
    p = max(p, c / a);
  }
  cout << p << endl;
  return 0;
}
