#include<cstdio>
#include<algorithm>
using namespace std;

int main(){
  int n,a,b,c,d[100];
  scanf("%d %d %d %d",&n,&a,&b,&c);
  for(int i=0;i<n;i++){
    scanf("%d",d+i);
  }
  sort(d,d+n);
  reverse(d,d+n);
  int ans = 0;
  int cost = a;
  int calorie = c;
  for(int i=0;i<n;i++){
    cost+=b;
    calorie+=d[i];
    ans = max(ans,calorie/cost);
  }
  printf("%d\n",ans);
  return 0;
}