function Main(input){
	input=input.split(/\n|\s/);
	input.forEach(function(e,i,a){a[i]=Number(a[i]);});
	var arr=input.splice(2,input.length-1);
	for(var i=0;i<input[0];i=(i+1)|0){input[1]-=arr[i];}
	arr.sort(ArraySortNumeric);
	function ArraySortNumeric(prev,next){return (prev-next);}
	console.log(input[0]+(input[1]/arr[1]|0));
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));