program main
  implicit none
  integer :: n, x, rem, add
  integer, allocatable :: m(:)
  read(*, *) n, x
  allocate(m(n))
  read(*, *) m
  rem = x - sum(m)
  add = rem / minval(m)
  write(*, "(i0)") n + add
end program main
