PROGRAM ATCODER

implicit none
integer(16) :: n,t(1:5),ans

read*, n,t(1:5)

ans = n/minval(t)

if ( mod(n,minval(t)) /= 0 ) then
  ans = ans + 1
end if

print'(i0)', 5 + ans - 1 

contains

END PROGRAM ATCODER