#include <bits/stdc++.h>
using namespace std;
int N, A, B, C;
vector<int> d;
int main() {
  scanf("%d%d%d%d", &N, &A, &B, &C);
  for (int i = 0; i < N; i++) {
    int t;
    scanf("%d", &t);
    d.push_back(t);
  }
  sort(d.begin(), d.end(), greater<int>());
  int x = 0, y = 0;
  double z = 0;
  x = C;
  y = A;
  z = x / (double)y;
  for (vector<int>::iterator it = d.begin(); it != d.end(); it++) {
    x += *it;
    y += B;
    if (z > x / (double)y) break;
    z = x / (double)y;
  }
  printf("%d", (int)z);
}
