import scala.io.StdIn._

object Main extends App {
  val n: Long = readLine.toLong
  val a: Array[Long] = (1 to 5).map(_ => readLine.toLong).toArray
  val min_v: Long = a.min
  val cnt = if (n % min_v > 0) n / min_v + 1 else n / min_v
  println(cnt+4)
}