#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b, c, cal[10001], sum = 0, ans;
  cin >> n >> a >> b >> c;
  for (int i = 1; i <= n; i++) {
    cin >> cal[i];
  }
  cal[0] = 10000;
  sort(cal, cal + n + 1, greater<int>());
  ans = c / a;
  for (int i = 1; i <= n; i++) {
    cout << cal[i] << endl;
    sum += cal[i];
    ans = max(ans, (c + sum) / (a + b * i));
  }
  cout << ans << endl;
  return 0;
}
