import java.util.*

fun main(args: Array<String>) {
  val sc = Scanner(System.`in`)
  val n = sc.nextLong()
  val a = sc.nextLong()
  val b = sc.nextLong()
  val c = sc.nextLong()
  val d = sc.nextLong()
  val e = sc.nextLong()

  var min = Math.min(a, b)
  min = Math.min(min, c)
  min = Math.min(min, d)
  min = Math.min(min, e)


  var tmp = n / min
  if (n % min != 0L) tmp++

  tmp--

  println(5 + tmp)
}
