function bigIntAdd(a, b) {
	var x = String(a).split("").reverse()
	var y = String(b).split("").reverse()
	var ans = []

	for (var i = 0; i < Math.max(x.length, y.length); i++) {
		var xi = 0
		var yi = 0
		if (x[i]) xi = x[i]
		if (y[i]) yi = y[i]
		ans.push(Number(xi) + Number(yi))
	}
	return ans.reverse().join("")
}

function main(arg) {
	arg = arg.split("\n").map(Number)
	var data = [
		arg[1], arg[2], arg[3], arg[4], arg[5]
	]
	var sum = new Array(data.length).fill(0)
	var N = arg[0]

	var min = Math.min(...data)
	if (N <= min) {
		console.log(5)
		return
	} else {
		var ans = bigIntAdd(Math.floor(N / min), 5)
		console.log(ans)
		// console.log(Math.floor(N / min) + 5)
	}
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));