#include<iostream>
#include<algorithm>
using namespace std;
static const int MAX = 100;

int main(){
  int N, A, B, C;
  int V[MAX];
  cin >> N >> A >> B >> C;
  for ( int i = 0; i < N; i++ ) cin >> V[i];
  int sum = 0;
  double ans = 0;
  sort(V, V + N);
  reverse(V, V + N);

  for ( int i = 0; i < N; i++ ){
    sum += V[i];
    ans = max(ans, 1.0*(sum + C)/(A+(i+1)*B));
  }

  cout << (int)ans << endl;
}