let n, x = Scanf.scanf " %d %d" @@ fun a b -> a, b
let ms = Array.init n @@ fun _ -> Scanf.scanf " %d" (+) 0
let m, s = Array.fold_left min ms.(0) ms, Array.fold_left (+) 0 ms
let _ = n + (x - s) / m |> Printf.printf "%d\n"