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