#include <bits/stdc++.h>
using namespace std;
int main() {
  int N = 0;
  int A = 0;
  int B = 0;
  int C = 0;
  int D[10000];
  int Ans;
  int U = 0;
  cin >> N;
  cin >> A >> B;
  cin >> C;
  Ans = C / A;
  for (int y = 0; y < N; y++) {
    cin >> D[y];
  }
  sort(D, D + N);
  for (int i = (N - 1); i >= 0; i--) {
    U += D[i];
    if (Ans < ((U + C) / (A + B * (N - i)))) {
      Ans = (U + C) / (A + B * (N - i));
    } else {
      break;
    }
  }
  cout << Ans << endl;
}
