#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b, c[100000], d, z = 0;
  cin >> n;
  cin >> a >> b;
  for (int i = 0; i < n; i++) cin >> c[i];
  cin >> d;
  sort(c, c + n);
  reverse(c, c + n);
  z = max(z, d / a);
  z = max(z, (c[0] + d) / (a + b));
  z = max(z, (c[0] + c[1] + d) / (a + b + b));
  cout << z << endl;
}
