let () =
  let a, b = Scanf.scanf "%d %d\n" (fun a b -> a, b) in

  let arr = Array.make a 0 in
  for i = 1 to a do
    let c = Scanf.scanf "%d\n" (fun c -> c) in
    Array.set arr (i-1) c
  done;

  let lst = Array.to_list arr in
  let sum = List.fold_left (+) 0 lst in
  let cheapest = List.hd (List.sort compare lst) in

  let x = (b - sum) / cheapest in

  print_endline (string_of_int (a + x))
