object Main extends App {
  val N = io.StdIn.readLine.toLong
  val A = io.StdIn.readLine.toLong
  val B = io.StdIn.readLine.toLong
  val C = io.StdIn.readLine.toLong
  val D = io.StdIn.readLine.toLong
  val E = io.StdIn.readLine.toLong

  val bottleneck = Seq(A, B, C, D, E).min

  val btime =
    if (N % bottleneck == 0) (N / bottleneck)
    else (N / bottleneck) + 1

  println(btime + 4)
}
