#include <bits/stdc++.h>
FILE *fp;
int main() {
  int n, a, b, c, *t, d, e, f, dl, ans, nans, cal;
  fp = fopen("2012-yo-t3.txt", "r");
  fscanf(fp, "%d", &n);
  t = (int *)malloc(sizeof(int) * (n));
  fscanf(fp, "%d %d", &a, &b);
  dl = a;
  fscanf(fp, "%d", &c);
  cal = c;
  ans = cal / dl;
  for (d = 0; d < n; d++) {
    fscanf(fp, "%d", &t[d]);
  }
  fclose(fp);
  for (d = 0; d < n; d++) {
    for (e = d + 1; e < n; e++) {
      if (t[d] <= t[e]) f = t[d], t[d] = t[e], t[e] = f;
    }
  }
  for (d = 0; d < n; d++) {
    cal += t[d];
    dl += b;
    nans = cal / dl;
    if (nans >= ans)
      ans = nans;
    else
      break;
  }
  printf("%d\n", ans);
  free(t);
  return 0;
}
