#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b, pizza;
  vector<int> top;
  cin >> n >> a >> b >> pizza;
  for (int i = (0); i < (n); i++) {
    int inp;
    cin >> inp;
    top.push_back(inp);
  }
  sort((top).begin(), (top).end(), greater<int>());
  int x, y, z;
  x = pizza / a;
  y = (pizza + top[0]) / (a + b);
  z = (pizza + top[0] + top[1]) / (a + b + b);
  cout << max(x, max(y, z)) << endl;
}
