N = int(input())
A, B = map(int, input().split())
C = int(input())
D = [None] * N
for i in range(N):
    D[i] = int(input())

D.sort(reverse = True)
numer = C
denom = A
ratio = numer / denom

for i in range(N):
    numer += D[i]
    denom += B
    next_ratio = numer / denom
    if next_ratio <= ratio:
        break
    ratio = next_ratio

print(int(ratio))