fun main(args: Array<String>) {
    val (n, x) = readLine()?.split(" ")?.map { it.toInt() } ?: return
    val mList = (0 until n).map { readLine()?.toInt()!! }
    val minM = mList.min() ?: 1
    val total = mList.sum()
    println(n + ((x - total) / minM))
}