'use strict'

function main(input) {
    input = input.split('\n') //.map(v => v.split(' '))
    let q = input.shift()
    q = q.split(' ') //[1]
    q = ~~q[1]
    let list = input.map((v, x) => (~~v)).sort((v, x) => { //  min to max
        return v - x
    })

    let min = list.reduce((v, x) => v + x) //list.length個
    let remain = q - min

    let ans = list.length

    //値の小さい順から作っていく
    let i = 0
    while (remain > list[i]) {

        ans += (Math.floor(remain / list[i]))
        remain = remain % list[i]
        i++
    }

    console.log(ans)
}

main(require("fs").readFileSync("/dev/stdin", "utf8"));