# Topic : Greedy _ 동전 0
#
# Python 3 : 76ms

N , K = map(int,input().split())

values = [ int(input()) for _ in range(N) ]

count = 0
for i in range(N-1,-1,-1):
  if K < values[i]:
    continue

  count += K // values[i]
  K = K % values[i]

  if K == 0:
    break

print(count)