import java.util.Scanner

object Main {
  val sc = new Scanner(System.in)
  def main(args: Array[String]): Unit = {
    val n   = sc.nextLong
    val tl  = List.fill(5)(sc.nextLong)
    val min = tl.min

    val res = (n + min - 1L) / min + 4L

    println(res)

  }
}