function Main(input){
  var data = input.split("\n");
  var move = Math.min(data[1], data[2], data[3], data[4], data[5]);
  console.log(Math.ceil(data[0]/move)+4);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));