let input = readLine()!.split(separator: " ").map{ Int(String($0))! }
var (N, K) = (input[0], input[1])
var coin = [Int]()
var answer = 0
for _ in 0..<N {
coin.append(Int(readLine()!)!)
}
for value in coin.reversed() {
if value <= K {
answer += K / value
K = K % value
}
}
print(answer)