#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b, c, d[1000], sum, ans;
  cin >> n;
  cin >> a >> b;
  cin >> c;
  for (int i = 0; i < n; i++) {
    cin >> d[i];
  }
  sort(d, d + n, greater<int>());
  ans = c / a;
  for (int i = 0; i < n; i++) {
    sum += d[i];
    ans = max(ans, (sum + c) / (a + b * (i + 1)));
  }
  cout << ans << endl;
}
