#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, a, b[200], price_a, price_b;
  cin >> N;
  cin >> price_a >> price_b;
  cin >> a;
  for (int i = 0; i < N; i++) {
    cin >> b[i];
  }
  sort(b, b + N);
  int c_sum, p_sum;
  c_sum = a;
  p_sum = price_a;
  for (int i = N - 1; i >= 0; i--) {
    if ((c_sum + b[i]) / (p_sum + price_b) > c_sum / p_sum) {
      c_sum += b[i];
      p_sum += price_b;
    } else {
      break;
    }
  }
  printf("%d\n", c_sum / p_sum);
  return 0;
}
