#include <bits/stdc++.h>
int num;
int p_cal;
int cal[100];
int p_price;
int price;
int box;
double per;
double cal_sum;
int main() {
  scanf("%d", &num);
  scanf("%d %d", &p_price, &price);
  scanf("%d", &p_cal);
  for (int i = 0; i < num; i++) {
    scanf("%d", &cal[i]);
  }
  for (int i = 0; i < num; i++) {
    for (int j = i + 1; j < num; j++) {
      if (cal[i] < cal[j]) {
        box = cal[i];
        cal[i] = cal[j];
        cal[j] = box;
      }
    }
  }
  per = (double)p_cal / (double)p_price;
  cal_sum = p_cal;
  for (int i = 0; i < num; i++) {
    cal_sum += cal[i];
    if (per >= cal_sum / (p_price + price * (i + 1))) {
      printf("%d", (int)per);
      return 0;
    }
    per = cal_sum / (p_price + price * (i + 1));
  }
  return 0;
}
