#include <stdio.h>

int main(void) {
  int i, j, k, n, ans = 0, a, b, c, tmp, now = 0;
  scanf("%d%d%d%d", &n, &a, &b, &c);
  int t[n];
  for(i = 0; i < n; ++i) scanf("%d", &t[i]);
  for(i = 0; i < n; ++i) for(j = i + 1; j < n; ++j) if(t[i] < t[j]) tmp = t[i], t[i] = t[j], t[j] = tmp;
  for(i = 0; i < n; ++i) {
    now += t[i];
    if((c + now) / (a + b * (i + 1)) > ans) ans = (c + now) / (a + b * (i + 1));
  }
  printf("%d\n", ans);
  return 0;
}
