function Main(input) {
  var inputs = input.split("\n");
  var n_x = inputs[0].split(" ").map(e => parseInt(e, 10));
  var m = inputs.slice(1).filter(e => e).map(e => parseInt(e, 10));
  var sum = m.reduce((acc, cur) => acc + cur);
  var min = Math.min(...m);
  var cnt = m.length;
  var g = 0;
  var x = n_x[1] - sum;

  while(g <= x) {
    g += min;
    cnt += 1;
  }
  console.log(cnt - 1);
}

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