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

m = [int(eval(input())) for i in range(N)]

for x in m:

  X -= x

m.sort()

n = int(X/m[0])

print((n + len(m)))
N,X = list(map(int,input().split()))

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

ans = N

X -= sum(m)

m = min(m)

ans += X//m

print(ans)
N, X = list(map(int, input().split()))
m = [int(eval(input())) for i in range(N)]
for x in m:
    X -= x
m.sort()
n = int(X / m[0])
print((n + len(m)))

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

-m = [int(eval(input())) for i in range(N)] -for x in m: -    X -= x -m.sort() -n = int(X / m[0]) -print((n + len(m))) +m = [int(eval(input())) for _ in range(N)] +ans = N +X -= sum(m) +m = min(m) +ans += X // m +print(ans)