#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long int n, p, cost, pizza, ans = 0, ans2 = 0;
  cin >> n >> p >> cost >> pizza;
  for (long long int a = 0; a < n; a++) {
    long long int piza;
    cin >> piza;
    if (ans < piza) {
      ans2 = ans;
      ans = piza;
    } else if (ans2 < piza) {
      ans2 = piza;
    }
  }
  long long int answer = (pizza + ans + ans2) / (cost * 2 + p);
  long long int answer2 = (pizza + ans) / (cost + p);
  long long int answer3 = pizza / p;
  long long int a = max(answer, answer2);
  a = max(a, answer3);
  cout << a << endl;
  return 0;
}
