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