import java.util.*

fun main(args:Array<String>) {
    val scanner= Scanner(System.`in`)
    val n = scanner.nextLong()
    var ae=LongArray(5)
    for (i in 0 until 5){
        ae[i]=scanner.nextLong()
    }
    val m=ae.min()!!
    var x=n/m
    if (n%m!=0L) x++
    println(4+x)
}
