"use strict";
function Main(input) {
    let T = input.split("\n").map((v) => v - 0);
    let N = T[0];
    let min = Math.min(...T.slice(1, 6));
    let t = Math.ceil(N / min) + 4;
    console.log(t);
}
if (typeof window === 'undefined') Main(require("fs").readFileSync("/dev/stdin", "utf8"));
