#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b, c, d[10000];
  cin >> n;
  cin >> a >> b;
  cin >> c;
  for (int i = 0; i < n; i++) cin >> d[i];
  int pizza = c;
  int best = c / a;
  int count = 0;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (i == j) continue;
      count = j;
      while (count < n) {
        pizza += d[count];
        count++;
      }
      best = max(best, pizza / (a + (n - j) * b));
      pizza = c;
    }
  }
  cout << best << endl;
  return 0;
}
