#include <bits/stdc++.h>
using namespace std;
int d[105];
int main(void) {
  int n, a, b, c;
  int i, cal;
  scanf("%d", &n);
  scanf("%d %d", &a, &b);
  scanf("%d", &c);
  cal = c / a;
  for (i = 0; i < n; i++) {
    scanf("%d", &d[i]);
  }
  sort(d, d + n, greater<int>());
  for (i = 0; i < n; i++) {
    if (cal < (c + d[i]) / (a + b)) {
      c += d[i];
      a += b;
      cal = c / a;
    } else {
      break;
    }
  }
  printf("%d\n", cal);
  return (0);
}
