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

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

cnt = 0

for i in M:

    X -= i

    cnt += 1

while True:

    X -= min(M)

    if X < 0:

        break

    cnt += 1

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

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

cnt = N

X -= sum(M)

cnt += X // min(M)

print(cnt)

N, X = list(map(int, input().split()))
M = [int(eval(input())) for i in range(N)]
cnt = 0
for i in M:
    X -= i
    cnt += 1
while True:
    X -= min(M)
    if X < 0:
        break
    cnt += 1
print(cnt)

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

-cnt = 0 -for i in M: -    X -= i -    cnt += 1 -while True: -    X -= min(M) -    if X < 0: -        break -    cnt += 1 +cnt = N +X -= sum(M) +cnt += X // min(M)