#include <bits/stdc++.h>
int cmp(const void* a, const void* b) { return (int*)b - (int*)a; }
int main() {
  int n, a, b, c, d[10000], i, cost, calorie;
  scanf("%d%d%d%d", &n, &a, &b, &c);
  for (i = 0; i < n; i++) {
    scanf("%d", &d[i]);
  }
  qsort(d, n, sizeof(int), cmp);
  cost = a;
  calorie = c;
  for (i = 0; calorie * b < d[i] * cost; i++) {
    cost += b;
    calorie += d[i];
  }
  printf("%d\n", calorie / cost);
  return 0;
}
