N = int(eval(input()))

D, X = list(map(int, input().split()))

A = [int(eval(input())) for i in range(N)]

t = 0

c = X

for i in range(N):

    t = A[i]

    for j in range(100):

        if 1 + t * j <= D:

            c += 1

        else:

            break

print(c)

N = int(eval(input()))

D, X = list(map(int, input().split()))

D -= 1

for i in range(N):

    A = int(eval(input()))

    X += D // A

print((X + N))

N = int(eval(input()))
D, X = list(map(int, input().split()))
A = [int(eval(input())) for i in range(N)]
t = 0
c = X
for i in range(N):
    t = A[i]
    for j in range(100):
        if 1 + t * j <= D:
            c += 1
        else:
            break
print(c)

N = int(eval(input()))
D, X = list(map(int, input().split()))
D -= 1
for i in range(N):
    A = int(eval(input()))
    X += D // A
print((X + N))

-A = [int(eval(input())) for i in range(N)] -t = 0 -c = X +D -= 1 -    t = A[i] -    for j in range(100): -        if 1 + t * j <= D: -            c += 1 -        else: -            break -print(c) +    A = int(eval(input())) +    X += D // A +print((X + N))