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



m = []

for i in range(N):

    m.append(int(eval(input())))



min_kona = 0

for val in m:

    min_kona += val



min_donut = min(m)

cnt = (X - min_kona) // min_donut + len(m)

print(cnt)
N, X = list(map(int, input().split()))



m = []

for i in range(N):

    m.append(int(eval(input())))



min_kona = sum(m)

min_donut = min(m)

cnt = (X - min_kona) // min_donut + len(m)

print(cnt)
N, X = list(map(int, input().split()))
m = []
for i in range(N):
    m.append(int(eval(input())))
min_kona = 0
for val in m:
    min_kona += val
min_donut = min(m)
cnt = (X - min_kona) // min_donut + len(m)
print(cnt)

N, X = list(map(int, input().split()))
m = []
for i in range(N):
    m.append(int(eval(input())))
min_kona = sum(m)
min_donut = min(m)
cnt = (X - min_kona) // min_donut + len(m)
print(cnt)

-min_kona = 0 -for val in m: -    min_kona += val +min_kona = sum(m)