import java.util.*
fun main(args: Array<String>) {

    val sc = Scanner(System.`in`)
    val N = sc.nextLong()
    val a = sc.nextLong()
    val b = sc.nextLong()
    val c = sc.nextLong()
    val d = sc.nextLong()
    val e = sc.nextLong()
    var num = N
    val list = longArrayOf(a,b,c,d,e)
    val min = list.min()!!
    var ans = (N-1)/min + 5
    println(ans)
}
