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

int main(){
  int n;
  while(cin >> n){
    int a,b, k_a;
    vector<int> v(n);
    cin >> a >> b;
    cin >> k_a;
    for(int i=0;i<n;i++) cin >> v[i];

    sort(v.begin(),v.end());

    int ans = k_a / a, sum = 0;
    for(int i=1;i<=n;i++){
      sum += v[n-i];
      ans = max(ans,(k_a+sum)/(a+i*b));
    }
    cout << ans << endl;
  }
  return 0;
}