import scala.io.StdIn
import scala.math._

object Main {
  def main(args: Array[String]): Unit = {
    val n = StdIn.readLong

    val minFlow = ((1 to 5).toList.map(_ => StdIn.readLong).min)

    println((n + minFlow - 1) / minFlow + 4)

  }
  
}