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

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

XX = X - sum(m)

ans = N + XX // min(m)

print(ans)
N, X = [int(i) for i in input().split()]

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



X_2 = X - sum([m[i] for i in range(N)])

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

N, X = [int(i) for i in input().split()]
m = [int(eval(input())) for i in range(N)]
X_2 = X - sum([m[i] for i in range(N)])
print((N + X_2 // min(m)))

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