#include <bits/stdc++.h>
template <typename A>
using V = std::vector<A>;
template <typename A>
using F = std::function<A>;
template <typename A, typename B>
using P = std::pair<A, B>;
using pii = P<long long, long long>;
using vi = V<long long>;
using vd = V<double>;
using vs = V<std::string>;
using vpii = V<pii>;
using vvi = V<vi>;
using vvpii = V<vpii>;
constexpr long long INF =
    sizeof(long long) == sizeof(long long) ? 1000000000000000000LL : 1000000000;
constexpr long long MOD = 1000000007;
constexpr double PI = 3.14159265358979;
template <typename A, typename B>
bool cmin(A &a, const B &b) {
  return a > b ? (a = b, true) : false;
}
template <typename A, typename B>
bool cmax(A &a, const B &b) {
  return a < b ? (a = b, true) : false;
}
constexpr bool odd(const long long n) { return n & 1; }
constexpr bool even(const long long n) { return ~n & 1; }
template <typename T>
std::istream &operator>>(std::istream &is, std::vector<T> &v) {
  for (T &x : v) is >> x;
  return is;
}
template <typename A, typename B>
std::istream &operator>>(std::istream &is, std::pair<A, B> &p) {
  is >> p.first;
  is >> p.second;
  return is;
}
using namespace std;
signed main() {
  long long n, a, b, c;
  cin >> n >> a >> b >> c;
  vi v(n);
  cin >> v;
  sort((v).rbegin(), (v).rend());
  long long k = 0, w = c;
  long long maxi = w / (a + k * b);
  for (auto &x : v) {
    if (cmax(maxi, (w + x) / (a + (k + 1) * b))) {
      k++;
      w += x;
    }
  }
  cout << maxi << endl;
}
