#include <bits/stdc++.h>
using namespace std;
int a, b, c, k;
int main() {
  cin >> k >> a >> b >> c;
  vector<int> tp(k, 0);
  for (int i = 0; i < k; i++) {
    cin >> tp[i];
  }
  sort(tp.begin(), tp.end());
  for (int i = k - 1; i >= 0; i--) {
    if (c / a < (c + tp[i]) / (a + b)) {
      c += tp[i];
      a += b;
    } else
      break;
  }
  cout << c / a << endl;
  return 0;
}
