function Main(input) {
  "use strict";
  const lines = input.split("\n");
  const [N, X] = lines.shift().split(" ").map(n => parseInt(n, 10));
  const ms = lines.map(n => parseInt(n, 10))
  const rest = X - ms.reduce((a,b) => a+b, 0)
  const min = ms.reduce((a,b) => a < b ? a : b, 1001)
  console.log(ms.length + Math.floor(rest/min))
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
