def five_transportations(n, a, b, c, d, e)
  ans = 0
  params = [a, b, c, d, e]
  min_index = 0
  1.upto(4) do |i|
    if params[min_index] > params[i]
      min_index = i
    end
  end

  (n / params[min_index].to_f).ceil + 4
end

n = gets.to_i
a = gets.to_i
b = gets.to_i
c = gets.to_i
d = gets.to_i
e = gets.to_i
puts five_transportations(n, a, b, c, d, e)