fun main(args: Array<String>) {
    abc123c()
}

fun abc123c() {
    val n = readLine()!!.toLong()
    val capacities = (1..5).map { readLine()!!.toLong() }

    // ボトルネックだけ考えればよい
    val minCapacity = capacities.min()!!

    val answer = Math.ceil(n.toDouble() / minCapacity.toDouble()).toLong() + 4

    println(answer)
}
