import java.util.Scanner

fun main(args: Array<String>) {
  val scanner = Scanner(System.`in`)
  val N = scanner.nextLong()
  var min = Long.MAX_VALUE
  for (i in 0..4) {
    val input = scanner.nextLong()
    min = if (min < input) min else input
  }
  println(N / min + (if (N % min == 0.toLong()) 4 else 5))
  scanner.close()
}