#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[3];
  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;
  ans[1] = (c + vi[0]) / (a + b);
  ans[2] = (c + vi[0] + vi[1]) / (a + b + b);
  printf("%d\n", max(ans[0], max(ans[1], ans[2])));
}
