#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int kn, kc;
  int n;
  int tn, tc[100], mtc = 0;
  int tmp;
  int sum;
  int cnt = 1;
  cin >> n >> kn >> tn >> kc;
  for (int i = 0; i < n; i++) {
    cin >> tc[i];
    for (int j = 0; j < i; j++) {
      if (tc[j] < tc[i]) {
        tmp = tc[j];
        tc[j] = tc[i];
        tc[i] = tmp;
      }
    }
  }
  sum = kc / kn;
  for (int i = 0; i < n; i++) {
    mtc += tc[i];
    if (sum < (kc + mtc) / (kn + tn * cnt)) {
      sum = (kc + mtc) / (kn + tn * cnt);
      cnt++;
    } else
      break;
  }
  cout << sum << endl;
  return 0;
}
