#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  double A, B, C;
  double D[100];
  cin >> n >> A >> B >> C;
  for (int i = 0; i < n; i++) {
    cin >> D[i];
  }
  sort(D, D + n, greater<int>());
  double ret = 0;
  double dp[100];
  dp[0] = D[0];
  for (int i = 0; i < n - 1; i++) {
    dp[i + 1] = dp[i] + D[i + 1];
    ret = max((C + dp[i + 1]) / (A + (i + 2) * B),
              max((C + dp[i]) / (A + (i + 1) * B), C / A));
  }
  cout << (int)ret << endl;
  return 0;
}
