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

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

x -= sum(m)

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

m = [int(eval(input())) for _ 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)]
x -= sum(m)
print((x // min(m) + n))

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

-m = [int(eval(input())) for i in range(n)] +m = [int(eval(input())) for _ in range(n)] -print((x // min(m) + n)) +print((n + x // min(m)))