using System;
using System.Linq;
namespace _0567
{
    class Program
    {
        static void Main(string[] args)
        {
            int syurui = int.Parse(Console.ReadLine());
            int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
            int kizinedan = x[0];
            int toppingnedan = x[1];
            int kizikarori = int.Parse(Console.ReadLine());
            int[] toppingkarori = new int[syurui];
            for (int i = 0; i < syurui; i++)
            {
                toppingkarori[i] = int.Parse(Console.ReadLine());
            }
            Array.Sort(toppingkarori);
            Array.Reverse(toppingkarori);
            int nowkarori = kizikarori;
            int nownedan = kizinedan;
            int nowpizza = nowkarori / nownedan;
            int j = 0;
            while (true)
            {
                if (syurui == j)
                {
                    break;
                }
                nowkarori += toppingkarori[j];
                nownedan += toppingnedan;
                if (nowpizza >= nowkarori / nownedan)
                {
                    break;
                }
                else
                {
                    nowpizza = nowkarori / nownedan;
                }
                j++;
            }
            Console.WriteLine(nowpizza);
            Console.ReadLine();
        }
    }
}