n=int(input())
a,b=map(int,input().split())
c=int(input())
d=sorted([int(input()) for _ in [0]*n],reverse=True)
for i in d:
    if c/a<(c+i)/(a+b):
        c+=i
        a+=b
    else:
        break
print(c//a)
