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

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



count=0



for i in range(len(m)):

    if x>=m[i]:

        x-=m[i]

        count+=1

        

min_donut=min(m)

while(x>=min_donut):

    x-=min_donut

    count+=1

    

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

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



print(((x-sum(m))//min(m)+n))
n, x = list(map(int, input().split()))
m = [int(eval(input())) for _ in range(n)]
count = 0
for i in range(len(m)):
    if x >= m[i]:
        x -= m[i]
        count += 1
min_donut = min(m)
while x >= min_donut:
    x -= min_donut
    count += 1
print(count)

n, x = list(map(int, input().split()))
m = [int(eval(input())) for _ in range(n)]
print(((x - sum(m)) // min(m) + n))

-count = 0 -for i in range(len(m)): -    if x >= m[i]: -        x -= m[i] -        count += 1 -min_donut = min(m) -while x >= min_donut: -    x -= min_donut -    count += 1 -print(count) +print(((x - sum(m)) // min(m) + n))