function main(input) {
  var args = input.split(/\s|\n/);
  var amount = args[1] * 1;
  var donuts = [];
  for (var i = 0;i < args[0];i++) {
    donuts[i] = args[i + 2];
    amount -= donuts[i];
  }
  donuts.sort(function(a,b){
        if( a < b ) return -1;
        if( a > b ) return 1;
        return 0;
　});
  console.log(args[0] * 1 + Math.floor(amount / donuts[0] * 1));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));