#include<iostream>
#include<vector>
#include<algorithm>

using namespace std;

int main(){
  int i, n, a, b, c, d, sum1, sum2, max, ans;
  vector<int> data;

  cin >> n >> a >> b >> c;
  for(i=0; i<n; ++i){
    cin >> d;
    data.push_back(d);
  }

  sort(data.begin(), data.end());
  for(i=data.size()-1, sum1=c, sum2=a, max=c/a; i>=0; --i){
    sum1 += data[i];
    sum2 += b;
    ans = sum1/sum2;
    if(max < ans) max = ans;
  }

  cout << max << endl;
  return 0;
}