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

int main(){

  int n;
  int a,b;
  int c;
  int d[1000];
  int ans;

  cin >> n;
  cin >> a >> b;
  cin >> c;
  for(int i=0;i<n;i++) cin >> d[i];

  sort(d,d+n);
  reverse(d,d+n);

  ans = c/a;
  for(int i=0;i<n;i++){
    if(ans > (c+d[i])/(a+(i+1)*b)) break;
    c += d[i];
    ans = c/(a+(i+1)*b);
  }

  cout << ans << endl;

}