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 match {
    case a >= N => println(N)
    case a < N if N % a == 0 => println(N / a)
    case a => println(N / a + 1)
  }
}