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

m = []

for i in range(n):

    m.append(int(eval(input())))

print((n+int((x-sum(m))/min(m))))
N,X = list(map(int,input().split()))

m = []

for _ in range(N):

    m.append(int(eval(input())))

print(((X-sum(m))//min(m)+N))

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

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

-n, x = list(map(int, input().split())) +N, X = list(map(int, input().split())) -for i in range(n): +for _ in range(N): -print((n + int((x - sum(m)) / min(m)))) +print(((X - sum(m)) // min(m) + N))