fun main(args: Array<String>) {
    val n = readLine()!!.toLong()
    val cap = LongArray(5) { readLine()!!.toLong() }
    val bn = cap.min()!!
    var total = n / bn + 4
    if (n % bn != 0L) {
        total++
    }
    println(total)
}
