#include<cstdio>
#include<algorithm>
int main(void){
  int n, a, b, c, d[128], dollar, cal, m;

  scanf("%d %d %d %d", &n, &a, &b, &c);
  for(int i = 0;i < n; i++) scanf("%d", d + i);
  dollar = a; cal = c; m = cal / dollar;
  std::sort(d, d + n);
  std::reverse(d, d + n);
  for(int i = 0;i < n; i++){
    dollar += b; cal += d[i];
    m = std::max(m, cal / dollar);
  }
  printf("%d\n", m);
}
