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