import java.util.Scanner

object Main {
  def main(args: Array[String]): Unit = {
    //nextLineとnextを同時に使ったら死ぬ
    val sc = new Scanner(System.in)
    val n, a, b, c, d, e = sc.nextLong()
    val min = List(a, b, c, d, e).min
    val m = if (n % min == 0) n / min else n / min + 1
    println(5L + m - 1L)
  }

  def debug(args: Any*): Unit = {
    Console.err.println(args.mkString(" "))
  }
}
