n = int(input())
c, b = map(int, input().split())
k = int(input())
A = [int(input()) for _ in range(n)]
A.sort(reverse=True)
r = k/c
for i in A:
	k += i
	c += b
	if k/c<=r:
		break
	else:
		r = k/c
print(int(r))

