n=int(eval(input()))

d,x=list(map(int,input().split()))

a=[int(eval(input())) for i in range(n)]

ans=x

for i in range(n):

    cnt=0

    while cnt*a[i]+1<=d:

        cnt+=1

    ans+=cnt

print(ans)
n=int(eval(input()))

d,x=list(map(int,input().split()))

a=[int(eval(input())) for i in range(n)]

ans=[1+(d-1)//a[i] for i in range(n)]

print((x+sum(ans)))



n = int(eval(input()))
d, x = list(map(int, input().split()))
a = [int(eval(input())) for i in range(n)]
ans = x
for i in range(n):
    cnt = 0
    while cnt * a[i] + 1 <= d:
        cnt += 1
    ans += cnt
print(ans)

n = int(eval(input()))
d, x = list(map(int, input().split()))
a = [int(eval(input())) for i in range(n)]
ans = [1 + (d - 1) // a[i] for i in range(n)]
print((x + sum(ans)))

-ans = x -for i in range(n): -    cnt = 0 -    while cnt * a[i] + 1 <= d: -        cnt += 1 -    ans += cnt -print(ans) +ans = [1 + (d - 1) // a[i] for i in range(n)] +print((x + sum(ans)))