#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, A, B;
  cin >> N >> A >> B;
  int base;
  cin >> base;
  vector<int> opt(N);
  for (auto& i : opt) cin >> i;
  sort(opt.begin(), opt.end());
  reverse(opt.begin(), opt.end());
  int ans = base / A;
  ans = max(ans, (base + opt[0]) / (A + B));
  ans = max(ans, (base + opt[0] + opt[1]) / (A + 2 * B));
  cout << ans << endl;
  return 0;
}
