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