object main extends App{
  val N = scala.io.StdIn.readLine().toInt
  val xss: List[Int] = (for(l <- scala.io.Source.stdin.getLines) yield (l.toInt)).toList
  xss.min < N match {
    case false => println(N)
    case true if N % xss.min == 0 => println(N / xss.min)
    case true => println(N / xss.min + 1)
  }
}