#include <bits/stdc++.h>
using namespace std;
const unsigned long long B = 100000007;
int main() {
  int n, a, b, c;
  cin >> n >> a >> b >> c;
  vector<int> d(n);
  for (int i = 0; i < (n); i++) cin >> d[i];
  sort(d.begin(), d.end(), greater<int>());
  int ans = c, cnt = a;
  for (int i = 0; i < (n); i++) {
    if ((ans + d[i]) / (cnt + b) > (ans / cnt)) {
      ans += d[i];
      cnt += b;
    }
  }
  cout << ans / cnt << endl;
}
