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

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

sum = n

for i in m:

    x = x - i

while x - min(m) >= 0:

    x = x - min(m)

    sum += 1

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

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

x -= sum(m)

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

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

-sum = n -for i in m: -    x = x - i -while x - min(m) >= 0: -    x = x - min(m) -    sum += 1 -print(sum) +x -= sum(m) +print((n + x // min(m)))