object Main extends App {
  val header: Array[Int]  = readLine.split(" ").map(_.toInt)
  val nums = Stream.continually(readInt).take(header(0))
  println((header(1) - nums.sum) / nums.min + header(0))
}
