# -*- coding: utf-8 -*-
"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0567
AC
"""
import sys
from sys import stdin
input = stdin.readline
from collections import namedtuple
item = namedtuple('item', ['cal', 'pri'])


def Cond(x, n, items, pizza):
    # y = [0] * n
    # for i in range(n):
    #     y[i] = items[i].cal - x * items[i].pri 
    y = [(items[i].cal - x * items[i].pri) for i in range(n)] #  ?????????????????°???1??????????????????????????????????????¢??????
    y.sort(reverse=True)
    
    total = pizza.cal - x * pizza.pri #  ?????¶?????°????????????????????????????????????
    #  ?????¶?????°??¨??¢??????????????????????????????????¨??????????????????¶(????????????1??????????????????????????????)?????????????????????
    for c in y:
        if c > 0:
            total += c
        else:
            break
    return total >= 0


def main(args):
    # ?????¬ p132 ???????????§???
    N = int(input())
    A, B = map(int, input().split())
    C = int(input())
    toppings = []
    for i in range(N):
        toppings.append(item(int(input()), B))
    pizza = item(C, A)

    lb = 0
    ub = 1e5
    for i in range(100):
        mid = (lb + ub) / 2
        if Cond(mid, N, toppings, pizza):
            lb = mid
        else:
            ub = mid
    print(int(ub))


if __name__ == '__main__':
    main(sys.argv[1:])