#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int a, b, c;
  cin >> n;
  cin >> a >> b >> c;
  int topping[100];
  for (int i = 0; i < n; i++) {
    cin >> topping[i];
  }
  sort(topping, topping + n);
  reverse(topping, topping + n);
  int cost = a;
  int calorie = c;
  for (int i = 0; i < n; i++) {
    if (calorie / cost < (calorie + topping[i]) / ((i + 1) * b + a)) {
      calorie = calorie + topping[i];
      cost = (i + 1) * b + a;
    }
  }
  cout << calorie / cost << endl;
  return (0);
}
