(* O(n) *)
Scanf.scanf "%d %d" @@ fun n x ->
  let ms = Array.init n @@ fun _ -> Scanf.scanf " %d" @@ (+) 0 in
  let x' = x - Array.fold_left (+) 0 ms in
  n + x' / Array.fold_left min max_int ms |> Printf.printf "%d\n"