program name
    use,intrinsic :: iso_fortran_env
    implicit none
    real(int64):: n,a,b,c,d,e
    read*, n
    read*, a
    read*, b
    read*, c
    read*, d
    read*, e

    print'(i0)', 5 + ceiling(n/minval([a,b,c,d,e]),kind=int64) -1
end program name