program main
    implicit none
    integer N, X, i, counter, m, m_min
    counter = 0
    m_min = 1001
    read *, N, X
    do i = 1,N
        read *, m
        X = X - m
        counter = counter + 1
        if(m_min > m) then
            m_min = m
        endif
    enddo
    do while (X > m_min)
        X = X - m_min
        counter = counter + 1
    enddo
    print *, counter
end program main
