#include <bits/stdc++.h>
int main() {
  int topn;
  int top, dou;
  int caldou, caltop[100];
  int i, j, a, b;
  scanf("%d", &topn);
  scanf("%d %d", &dou, &top);
  scanf("%d", &caldou);
  for (i = 0; i < topn; i++) scanf("%d", &caltop[i]);
  for (i = 0; i < topn; i++)
    for (j = 0; j < topn; j++) {
      if (caltop[j] < caltop[j + 1]) {
        a = caltop[j];
        caltop[j] = caltop[j + 1];
        caltop[j + 1] = a;
      }
    }
  int pay, calbest, paybest;
  pay = dou;
  calbest = caldou / pay;
  paybest = pay;
  for (i = 0; i < topn; i++) {
    pay += top;
    caldou += caltop[i];
    if (calbest <= caldou / pay) {
      calbest = caldou / pay;
      paybest = pay;
    }
  }
  printf("%d\n", calbest);
  return 0;
}
