N = gets.to_i
A = 5.times.map { gets.to_i }

min_i = nil
min_a = Float::INFINITY
A.each_with_index do |a, i|
  if min_a > a
    min_a = a
    min_i = i
  end
end

ans = 4 + N / min_a + (N % min_a != 0 ? 1 : 0)
puts ans
