#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
  int n,a,b,c;
  cin >> n >> a >> b >> c;
  vector<int> cal(n);
  for(int i=0; i<n; i++) cin >> cal[i];
  sort(cal.rbegin(),cal.rend());
  int cost = a;
  int calory = c;
  for(int i=0; i<n; i++){
    if(calory / (double)cost > (calory + cal[i]) / (double)(cost + b)) break;
    calory += cal[i];
    cost += b;
  }
  cout << calory / cost << endl;
  return 0;
}