#include <bits/stdc++.h>
using namespace std;
int n;
int A, B;
int pieC;
int C[100];
int main() {
  cin >> n;
  cin >> A >> B;
  cin >> pieC;
  for (int i = 0; i < n; i++) {
    cin >> C[i];
  }
  sort(C, C + n);
  reverse(C, C + n);
  int calorie = pieC;
  int doll = A;
  int ans = calorie / doll;
  for (int i = 0; i < n; i++) {
    doll += B;
    calorie += C[i];
    if (calorie / doll > ans) {
      ans = calorie / doll;
    } else {
      break;
    }
  }
  cout << ans << endl;
  return 0;
}
