#include <bits/stdc++.h>
int n, a, b, c, C[100], ans, co;
int main() {
  std::cin >> n >> a >> b >> c;
  for (int i = 0; i < n; ++i) {
    std::cin >> C[i];
  }
  co = c / a;
  ans = co;
  std::sort(C, C + n, std::greater<int>());
  for (int i = 0; i <= n; ++i) {
    ans = std::max((c + C[i]) / (i * b + a), ans);
  }
  std::cout << ans << std::endl;
  return 0;
}
