fun main(args : Array<String>) {
    val n = readLine()!!.toLong()
    val capacities = Array(5,{readLine()!!.toLong()})
    
    val bottoleneck = capacities.min()!!;
    val a = (n / bottoleneck) + if(n % bottoleneck != 0L){1}else{0} + 4;
    
    println(a)
}