import java.util.Scanner

object Main {
  def main(args: Array[String]) = {
    val sc = new Scanner(System.in)
    val N = sc.nextLine().toLong
    val nums = List.fill(5)(sc.nextLine()).map(_.toLong)

    println(((N + nums.min - 1) / nums.min) + 4)
  }

}
