#include <iostream>
#include <algorithm>
#include <functional>
using namespace std;

int main(){
  int n,a,b,c,topp[101];
  cin >> n >> a >> b >> c;
  for(int i=0;i<n;i++) cin >> topp[i];
  sort(topp,topp + n,greater<int>());
  int cal,dol,maxi;
  cal = c; dol = a;
  maxi = cal/dol;
  for(int i=0;i<n;i++){
    cal += topp[i];
    dol += b;
    maxi = (maxi < cal/dol)? cal/dol : maxi;
  }
  cout << maxi << endl;
}