n, k = map(int, input().split()) a = [0 for _ in range(n)] cost = 0 for i in range(n): a[i]= int(input()) for i in range(n-1,-1,-1): cost = cost + (k // a[i]) k = k - (a[i] * (k // a[i])) print(cost)