#include <bits/stdc++.h>
int c(const void *val1, const void *val2) {
  return *(int *)val2 - *(int *)val1;
}
int main(void) {
  int num, dp, dt, dc, i, t[100] = {0}, sum, sum1;
  scanf("%d\n%d %d\n%d", &num, &dp, &dt, &dc);
  for (i = 0; scanf("%d", &t[i++]), i != num;)
    ;
  qsort(t, num, 4, c);
  sum = dc / dp;
  for (i = 0, dc += t[i], dp += dt, sum1 = dc / dp; sum < sum1;) {
    sum = sum1;
    dc += t[++i];
    dp += dt;
    sum1 = dc / dp;
  }
  printf("%d\n", sum);
  return 0;
}
