'use strict'
function Main(input) {
  const numP = input.trim().split("\n").map(Number);
  let numG = numP.shift();
  // console.log({ numG, numP });

  let btlNeck = Math.min(...numP);
  let Ans = Math.ceil(numG / btlNeck) + 4;
  console.log(Ans);

}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));