#include <bits/stdc++.h>
void sort(int a[], int n) {
  for (int i = 1; i < n; i++) {
    int v = a[i];
    int j = i - 1;
    while (j >= 0 && a[j] < v) {
      a[j + 1] = a[j];
      j--;
    }
    a[j + 1] = v;
  }
}
int main(void) {
  int ntopping, dough_dollar, topping_dollar, dough_calorie;
  int topping_calorie[100], dollar, calorie, piza;
  scanf("%d", &ntopping);
  scanf("%d %d", &dough_dollar, &topping_dollar);
  scanf("%d", &dough_calorie);
  for (int i = 0; i < ntopping; i++) {
    scanf("%d", &topping_calorie[i]);
  }
  dollar = dough_dollar;
  calorie = dough_calorie;
  piza = dough_calorie / dough_dollar;
  sort(topping_calorie, ntopping);
  for (int i = 0; i < ntopping; i++) {
    dollar += topping_dollar;
    calorie += topping_calorie[i];
    if (piza < calorie / dollar) {
      piza = calorie / dollar;
    } else {
      break;
    }
  }
  printf("%d\n", piza);
  return 0;
}
