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 = Math.ceil(N /min) + 4
		console.log(ans)
	}
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));