'use strict'
function main(input) {
	let s = input.split('\n');
  	let N = s[0].split(' ').map((a)=>Number(a));
  	let m = [];
  	for(let i = 1;i < s.length-1; i++) {
    	m.push(Number(s[i]));
    }
  
  	let 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"));
