fun main(args: Array<String>) {
    val N = nextLong()
    val T = Array(5) { nextLong() }.asList().sorted()
    val ans = (N + T.first() - 1) / T.first() + 4
    println(ans)
}
fun next() = readLine()!!
fun nextLong() = next().toLong()