'use strict'

function main(input) {

    input = input.split('\n')
    let q = input[0].split(' ')
    q = ~~q[1]
    let list = input.slice(1).map((v, x) => (~~v)).sort((v, x) => v - x) //  numberlize and min to max

    let ans = list.length // minimum count

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

    ans += Math.floor(remain / list[0])


    console.log(ans)
}

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