fun main(args: Array<String>) {
    val n = readLine()!!.toLong()
    val caps = Array(5) {
        readLine()!!.toLong()
    }
    
    println(Math.ceil(n / caps.min()!!.toDouble()).toLong() + 4)
}
