#include <bits/stdc++.h>
int main(void) {
  int a, b, d[100];
  int c, i, j, n, kk, dr, dm;
  int max, temp, max1;
  int cnt;
  max = 0;
  cnt = 0;
  dm = 0;
  kk = 0;
  dr = 0;
  scanf("%d", &n);
  scanf("%d %d", &a, &b);
  scanf("%d", &c);
  max = c / a;
  for (i = 0; i < n; i++) {
    scanf("%d", &d[i]);
  }
  for (i = 0; i < n - 1; i++) {
    for (j = i + 1; j < n; j++) {
      if (d[i] < d[j]) {
        temp = d[i];
        d[i] = d[j];
        d[j] = temp;
      }
    }
  }
  for (i = 0; i < n; i++) {
    dm += d[i];
    cnt++;
    dr = a + b * cnt;
    kk = (dm + c) / dr;
    if (max < kk) {
      max = kk;
    }
  }
  printf("%d", max);
  return 0;
}
