#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b, sum;
  cin >> n >> a >> b >> sum;
  vector<int> v(n);
  for (int i = 0; i < n; i++) {
    cin >> v[i];
  }
  sort(v.begin(), v.end(), greater<int>());
  for (int k = 0; k < n; k++) {
    if (sum * b < v[k] * (a + k * b)) {
      sum += v[k];
    } else {
      const int before = sum / (a + k * b);
      cout << before << endl;
    }
  }
  return 0;
}
