program bitter_alchemy
  implicit none
  integer :: n, x, m, s, t, i
  read(*,*) n, x
  s = 0
  t = 1001
  do i = 1, n
    read(*,*) m
    s = s + m
    if (t.gt.m) t = m
  end do
  write(*,'(i0)') n + (x-s)/t
  stop
end program bitter_alchemy