from itertools import accumulate

num = int(input())
a, b = [int(x) for x in input().split()]
p = int(input())

T = []
C = []

for _ in range(num):
    T.append(int(input()))

C.append(int(p/a))
T.sort(reverse=True)

for i,c in enumerate(accumulate(T),start=1):
    C.append( int( (p+c) / (a+i*b)) )

print( sorted(C,reverse=True)[0] )
