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