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

m = []

for i in range(n):

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

count = 0

a = min(m)

s = sum(m)



x -= s

count += n



while x >= a:

    x -= a

    count += 1



print(count)
n, x = list(map(int, input().split()))

m = [int(eval(input())) for _ in range(n)]



x -= sum(m)

count = n



mincost = 10**5

for i in range(n):

    mincost = min(mincost, m[i])



count += x // mincost

print(count)
n, x = list(map(int, input().split()))
m = []
for i in range(n):
    m.append(int(eval(input())))
count = 0
a = min(m)
s = sum(m)
x -= s
count += n
while x >= a:
    x -= a
    count += 1
print(count)

n, x = list(map(int, input().split()))
m = [int(eval(input())) for _ in range(n)]
x -= sum(m)
count = n
mincost = 10**5
for i in range(n):
    mincost = min(mincost, m[i])
count += x // mincost
print(count)

-m = [] +m = [int(eval(input())) for _ in range(n)] +x -= sum(m) +count = n +mincost = 10**5 -    m.append(int(eval(input()))) -count = 0 -a = min(m) -s = sum(m) -x -= s -count += n -while x >= a: -    x -= a -    count += 1 +    mincost = min(mincost, m[i]) +count += x // mincost