function Main(input){
  var s = input.split('\n');
  var N = s[0].split(' ').map((a)=>Number(a));
  var m = [];
  for(var i=1;i<s.length-1;i++){
    m.push(Number(s[i]));
  }
  var re = N[1]-m.reduce((a,b)=>a+b);

  console.log(N[0]+Math.floor(re/Math.min(...m)));
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));