#include "iostream"

int main(){
  int n;
  int primes[2];
  int pizaKarori;
  int toppings[100];
  int masterK;
  int masterP;
  cin >> n;
  cin >> primes[0] ;
  cin >> primes[1] ;
  cin >> pizaKarori;
  masterK=pizaKarori;
  masterP=primes[0];
  for(int i=0;i<n;i++){
    cin >> toppings[i];
  }
  for(int j=0;j<n;j++){
 for(int i=0;i<=n;i++){
      if(toppings[i]<toppings[i+1]){
	int c;
	c=toppings[i];
	toppings[i]=toppings[i+1];
	toppings[i+1]=c;
      }
 
 }
      }

  for(int i=0;i<n;i++){
    if((double)(masterK)/masterP < (double)(masterK+toppings[i])/masterP+primes[2]){
      masterK+=toppings[i];
      masterP+=primes[2];
    }
    else{
      break;
    }
  }
  cout << masterK/masterP <<endl;
  return 0;
}