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

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

ans = 0

minm = 1000

for i in range(n):

    x -= m[i]

    minm = min(minm,m[i])

    ans += 1

while x >= minm:

    x -= minm

    ans += 1

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

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

x -= sum(m)

ans = n + x//min(m)

print(ans)
n, x = list(map(int, input().split()))
m = [int(eval(input())) for _ in range(n)]
ans = 0
minm = 1000
for i in range(n):
    x -= m[i]
    minm = min(minm, m[i])
    ans += 1
while x >= minm:
    x -= minm
    ans += 1
print(ans)

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

-ans = 0 -minm = 1000 -for i in range(n): -    x -= m[i] -    minm = min(minm, m[i]) -    ans += 1 -while x >= minm: -    x -= minm -    ans += 1 +x -= sum(m) +ans = n + x // min(m)