#include <bits/stdc++.h>
int main(void) {
  int n;
  int a, b;
  int c;
  int d[128] = {0};
  int i, j;
  int cal;
  int price;
  scanf("%d", &n);
  scanf("%d %d", &a, &b);
  scanf("%d", &c);
  for (i = 0; i < n; i++) scanf("%d", d + i);
  for (i = 0; i < n - 1; i++) {
    for (j = 0; j < n - 1; j++) {
      if (d[j] < d[j + 1]) {
        int t = d[j];
        d[j] = d[j + 1];
        d[j + 1] = t;
      }
    }
  }
  cal = c;
  price = a;
  for (i = 0; i < n; i++) {
    if ((cal + d[i]) / (price + b) > cal / price) {
      cal += d[i];
      price += b;
    }
  }
  printf("%d\n", cal / price);
  return 0;
}
