#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int k_prc, t_prc, k_cal, num;
  cin >> num >> k_prc >> t_prc >> k_cal;
  vector<int> v;
  for (int i = 0; i < num; i++) {
    int a;
    cin >> a;
    v.push_back(a);
  }
  sort(v.begin(), v.end(), greater<int>());
  int max_cal = k_cal / k_prc;
  int cnt = 1;
  while (1) {
    float cal = (float)k_cal;
    int sum_prc = 0;
    for (int i = 0; i < cnt; i++) {
      cal += (float)v[i];
    }
    cout << "cal:" << cal << endl;
    sum_prc = k_prc + (t_prc * cnt);
    cal /= (float)sum_prc;
    if (max_cal < cal) {
      max_cal = cal;
    }
    if (cnt == num) {
      break;
    }
    cnt++;
  }
  cout << max_cal << endl;
}
