n = int(eval(input()))

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



# 各参加者がチョコレートを食べる日付を取得してリストへ格納する

al = [0 for _ in range(n)]

for i in range(n):

    al[i] = int(eval(input()))



# 1日目が経過した状態にする

ans = n

eat_count = [1 for _ in range(n)]

next_eat = [0 for _ in range(n)]

for i in range(n):

    next_eat[i] = al[i]*eat_count[i]+1

    eat_count[i] = 2



# 2日目以降の食べた個数を求める

for day in range(1, d+1):

    if not(day in next_eat):

        continue



    for i, eat_day in enumerate(next_eat):

        if eat_day == day:

            ans += 1

            next_eat[i] = al[i]*eat_count[i]+1

            eat_count[i] += 1



print((ans+x))

n = int(eval(input()))

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



# 各参加者がチョコレートを食べる日付を取得してリストへ格納する

al = [0 for _ in range(n)]

for i in range(n):

    al[i] = int(eval(input()))



ans = 0

for i in al:

    ans += ((d-1)//i)

    ans += 1



print((ans+x))
n = int(eval(input()))
d, x = list(map(int, input().split()))
# 各参加者がチョコレートを食べる日付を取得してリストへ格納する
al = [0 for _ in range(n)]
for i in range(n):
    al[i] = int(eval(input()))
# 1日目が経過した状態にする
ans = n
eat_count = [1 for _ in range(n)]
next_eat = [0 for _ in range(n)]
for i in range(n):
    next_eat[i] = al[i] * eat_count[i] + 1
    eat_count[i] = 2
# 2日目以降の食べた個数を求める
for day in range(1, d + 1):
    if not (day in next_eat):
        continue
    for i, eat_day in enumerate(next_eat):
        if eat_day == day:
            ans += 1
            next_eat[i] = al[i] * eat_count[i] + 1
            eat_count[i] += 1
print((ans + x))

n = int(eval(input()))
d, x = list(map(int, input().split()))
# 各参加者がチョコレートを食べる日付を取得してリストへ格納する
al = [0 for _ in range(n)]
for i in range(n):
    al[i] = int(eval(input()))
ans = 0
for i in al:
    ans += (d - 1) // i
    ans += 1
print((ans + x))

-# 1日目が経過した状態にする -ans = n -eat_count = [1 for _ in range(n)] -next_eat = [0 for _ in range(n)] -for i in range(n): -    next_eat[i] = al[i] * eat_count[i] + 1 -    eat_count[i] = 2 -# 2日目以降の食べた個数を求める -for day in range(1, d + 1): -    if not (day in next_eat): -        continue -    for i, eat_day in enumerate(next_eat): -        if eat_day == day: -            ans += 1 -            next_eat[i] = al[i] * eat_count[i] + 1 -            eat_count[i] += 1 +ans = 0 +for i in al: +    ans += (d - 1) // i +    ans += 1