#include<iostream>
#include<algorithm>
using namespace std;
int main(){
  int N, A, B, C,D[100], ret, hoge;

  cin >> N;
  cin >> A >> B;
  cin >> C;

  hoge = C;
  ret = hoge / A;
  for(int i = 0; i < N; i++){
    cin >> D[i];
  }
  sort( D, D + N, greater<int>());

  for(int i = 0; i < N; i++){
    hoge += D[i];
    ret = max( ret, hoge / ( A + ( i + 1) * B));
  }
  cout << ret << endl;
}