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

ds = [int(input()) for i in range(n)]
ds.sort(reverse=True)

ans = c // a
for i in range(n):
  c += ds[i]
  ans = max(c // (a + b * (i + 1)), ans)

print(ans)

