n, k = map(int, input().split()) array = [int(input()) for x in range(n)] cnt = 0 for i in reversed(array): if i > k: continue cnt += k//i k -= i*(k//i) print(cnt)