#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b, c, t;
  double rate, ret;
  cin >> n >> a >> b >> c;
  int p = a, pr[n];
  for (int i = 0; i < n; i++) {
    cin >> pr[i];
  }
  sort(pr, pr + n);
  for (int i = 0; i < b; i++) {
    c += pr[n - 1 - i];
    p += b;
    rate = (double)c / p;
    if (i == 0 || rate > ret) {
      ret = rate;
    } else {
      break;
    }
  }
  cout << (int)floor(ret) << endl;
}
