#include <bits/stdc++.h>
using namespace std;
int f(int x, int y) {
  if (x < y) return false;
  return true;
}
int main() {
  int n, a, b, c, d, ans[102] = {0}, max_ans = 0;
  vector<int> vi;
  scanf("%d%d%d%d", &n, &a, &b, &c);
  for (int i = 0; i < n; i++) {
    scanf("%d", &d);
    vi.push_back(d);
  }
  sort(vi.begin(), vi.end(), f);
  ans[0] = c / a;
  for (int i = 0; i < n; i++) {
    c += vi[i];
    a += b;
    ans[i + 1] = c / a;
    if (ans[i + 1] < ans[i]) max_ans = i;
  }
  printf("%d\n", ans[max_ans]);
}
