#include <iostream>
#include <algorithm>
#include <functional>
using namespace std;

int main()
{

	int N, A, B, C, Max, sumv, sumc;
	int *D;

	cin >> N;

	D = new int[N];

	cin >> A >> B >> C;

	for( int i = 0; i < N; i++ ) cin >> D[i];

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

	Max  = 0;
	sumv = 0;
	sumc = 0;

	for( int  i = 0; i < N; i++ ) {

		sumv  = A + ( i + 1 ) * B;
		sumc += D[i];

		if( Max < ( sumc + C ) / sumv ) Max = ( sumc + C ) / sumv;

	}

	cout << Max << endl;

	return 0;

}