#include <bits/stdc++.h>
using namespace std;
const int INF = 1000000000;
int main() {
  int ans, n;
  int a, b, t[102], c;
  double aaa, aa;
  scanf("%d%d%d%d", &n, &a, &b, &c);
  for (int i = 0; i < n; i++) scanf("%d", &t[i]);
  for (int i = n; i < 102; i++) t[i] = 0;
  sort(t, t + 102);
  for (int i = 101; i > -1; i--) {
    if ((c + t[i]) / (a + b) > c / a) {
      c += t[i];
      a += b;
    } else
      break;
  }
  ans = c / a;
  printf("%d\n", ans);
}
