"use strict"
function Main(input) {
  const lines = input.split('\n');
  const [n, x] = lines[0].split(' ');

  const marr = lines.slice(1, lines.length);
  const add = marr.reduce((acc, v) => {
    return parseInt(acc, 10)+parseInt(v, 10)
  });

  const min = Math.min.apply(null, marr);
  let rem = x-add;
  let cnt=0;
  while(rem >= min){
    rem-=min
    ++cnt;
  }

  console.log(parseInt(n,10)+cnt);
}

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