#include<bits/stdc++.h>
using namespace std;

#define rep(i, n) for(int i=0; i<n; i++)

int n;
int A, B, C;
int D[111];
int res;
int sum;
int price;

int main(int argc, char *argv[])
{
  cin >> n;
  cin >> A >> B;
  cin >> C;
  rep(i, n) cin >> D[i];

  sort(D, D + n, greater<int>());

  sum = C;
  price = A;
  rep(i, n){
    sum += D[i];
    price += B;
    res = max(res, sum / price);
  }

  cout << res << endl;
  
  return 0;
}