#include <bits/stdc++.h>
using namespace std;
int n, a, b, c;
int data[101];
int main() {
  cin >> n;
  cin >> a >> b >> c;
  for (int i = 0; i < n; i++) {
    cin >> data[i];
  }
  sort(data, data + n);
  reverse(data, data + n);
  int ans = c / a;
  int sum = c;
  for (int i = 1; i <= n; i++) {
    sum += data[i - 1];
    if (ans < sum / (a + b * i)) {
      ans = sum / (a + b * i);
    } else {
      break;
    }
  }
  cout << ans << endl;
  return 0;
}
