#include <bits/stdc++.h>
using namespace std;
#define Rep(i,N) for(int i = 0; i < N; i++)

int main()
{
  int N;
  int A, B, C;
  int topi[105];
  cin >> N >> A >> B >> C;
  Rep(i,N) cin >> topi[i];
  sort( topi, topi + N, greater<int>() );
  int sum = C;
  int maxv = C / A;
  Rep(i,N) {
    sum += topi[i];
    maxv = max(maxv,sum / (A + (i + 1) * B));
  }
  cout << maxv << endl;
  return 0;
}