# coding: utf-8
n = int(raw_input()) # トッピングの種類
a, b = map(int, raw_input().split(' ')) # 生地の値段、各トッピングの値段
c = int(raw_input()) # 生地のカロリー

toppings = [int(raw_input()) for x in xrange(n)]

toppings.sort(reverse=True)

part_sum = [0] * (n + 1)
for index, cal in enumerate(toppings):
    part_sum[index + 1] = part_sum[index] + cal

ans = 0

for x in xrange(n + 1):
    p = (c + part_sum[x]) / (a + b * x)
    ans = max(ans, p)

print ans