#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, A, B, C;
  int t[101];
  int i, j, k, n, w;
  int pizza;
  int max;
  cin >> N;
  cin >> A >> B;
  cin >> C;
  max = C / A;
  pizza = 0;
  k = 0;
  for (i = 0; i < N; i++) {
    cin >> t[i];
  }
  for (i = 0; i < N; i++) {
    for (n = i + 1; n <= N; n++) {
      pizza = C;
      k = 0;
      for (j = i; j < n; j++) {
        pizza = pizza + t[j];
        k++;
      }
      w = A + k * B;
      if (max < pizza / w) {
        max = pizza / w;
      }
    }
  }
  cout << max << endl;
  return 0;
}
