object Main {

  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val N, A, B, C, D, E = sc.nextLong
    val min = Array(A, B, C, D, E).min
    val result = (Math.ceil(N / min.toDouble) + 4).toLong
    println(result)
  }
}
