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