n = int(input())
a, b = map(int, input().split())
c = int(input())

topping = []
for _ in range(n):
    d = int(input())
    topping.append(d)

topping.sort(reverse=True)
ans = c // a
total = c

for i, t in enumerate(topping):
    total += t
    cal = total // (a + (i+1) * b)
    if ans <= cal:
        ans = cal
    else:
        break

print(ans)

