import scala.io.StdIn._

object Main extends App {

  val n = readLong()
  val A = Array.fill(5)(readLong())

  def solve() = {
    val bottleneck = A.min
    if(n <= bottleneck) 5L
    else 4 + (n + bottleneck - 1)/bottleneck
  }
  println(solve())

}

