process.stdin.resume();
process.stdin.setEncoding('utf8'); 
var lines = [];
var reader = require('readline').createInterface({
	input: process.stdin,
	output: process.stdout
});
 
reader.on('line', (line) => {
	lines.push(line);
});

reader.on('close', () => {
	const N = +lines[0];
	const A = +lines[1];
	const B = +lines[2];
	const C = +lines[3];
	const D = +lines[4];
	const E = +lines[5];
	
	const bottleneck = Math.min(A,B,C,D,E);
	
	console.log(Math.ceil(N/bottleneck) + 4);
});