#include<cstdio>
#include<algorithm>
#include<string>
using namespace std;
int N,A,B,C;
int D[111];
int main(){
  scanf("%d",&N);
  scanf("%d %d",&A,&B);
  scanf("%d",&C);
  for(int i=0;i<N;i++){
    scanf("%d",&D[i]);
  }
  sort(D,D+N);
  int res=C/A;
  int sum=C;
  for(int i=N-1,j=1;i>-1;i--,j++){
    sum+=D[i];
    res=max(res,sum/(A+j*B));
  }
  printf("%d\n",res);
}