#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b, c, x[105] = {};
  double sum = 0;
  cin >> n;
  cin >> a >> b;
  cin >> c;
  for (int i = 0; i < n; i++) {
    cin >> x[i];
  }
  reverse(x, x + n);
  sum += c;
  double R = 0;
  R += a;
  for (int i = 0; i < n; i++) {
    if ((sum + x[i]) / (R + b) > sum / R) {
      sum += x[i];
      R += b;
    }
  }
  cout << (int)(sum / R) << endl;
  return 0;
}
