#include <bits/stdc++.h>
int main(void) {
  int N, A, B, C, D[10001], sum = 0, d, ans, i, rest, ham, b, pns;
  scanf("%d", &N);
  scanf("%d %d", &A, &B);
  scanf("%d", &C);
  for (i = 1; i <= N; i++) {
    scanf("%d", &D[i]);
    if (i >= 2) {
      if (D[i - 1] < D[i]) {
        rest = D[i - 1];
        D[i - 1] = D[i];
        D[i] = rest;
      }
    }
  }
  sum = C;
  d = A;
  ans = sum / d;
  for (i = 1; i <= N; i++) {
    if (i == 1) {
      ham = sum + D[1];
      b = d + B;
      ans = ham / b;
    } else {
      ham = ham + D[i];
      b = b + B;
      pns = ham / b;
    }
    if (ans < pns) {
      ans = pns;
    }
  }
  printf("%d\n", ans);
  return 0;
}
