place_num = int(input())
tmp = input()
person = tmp.split()
b, c = input().split()

total = 0

for k in range(0, place_num):
    left = int(person[k]) - int(b)
    if left < 0: tmp1 = 1
    elif left%int(c) == 0: tmp1 = 1 + (left/int(c))
    else: tmp1 = 1 + (left/int(c)) + 1

    total += int(tmp1)

print(total)

daa15a0c36f702b8a7f8b31b999fd45f3ad41513
<mask token>

<mask token>
for k in range(0, place_num):
    left = int(person[k]) - int(b)
    if left < 0:
        tmp1 = 1
    elif left % int(c) == 0:
        tmp1 = 1 + left / int(c)
    else:
        tmp1 = 1 + left / int(c) + 1
    total += int(tmp1)
print(total)

place_num = int(input())
tmp = input()
person = tmp.split()
b, c = input().split()
total = 0
for k in range(0, place_num):
    left = int(person[k]) - int(b)
    if left < 0:
        tmp1 = 1
    elif left % int(c) == 0:
        tmp1 = 1 + left / int(c)
    else:
        tmp1 = 1 + left / int(c) + 1
    total += int(tmp1)
print(total)

place_num = int(input())
tmp = input()
person = tmp.split()
b, c = input().split()

total = 0

for k in range(0, place_num):
    left = int(person[k]) - int(b)
    if left < 0: tmp1 = 1
    elif left%int(c) == 0: tmp1 = 1 + (left/int(c))
    else: tmp1 = 1 + (left/int(c)) + 1

    total += int(tmp1)

print(total)
