#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b, c, sum, res = 0, list[101];
  cin >> n >> a >> b >> c;
  for (int i = 0; i < n; i++) {
    cin >> list[i];
  }
  for (int i = 1; i <= n; i++) {
    for (int j = 0; j <= n - i; j++) {
      sum = c;
      for (int k = 0; k < i; k++) {
        sum += list[j + k];
        res = max(res, sum / (a + i * b));
      }
    }
  }
  cout << res << endl;
  return 0;
}
