function Main(input){
  
  var str = input;
  var tmp = str.split("\n");
  var n = parseInt(tmp[0],10);
  var a = parseInt(tmp[1],10);
  var b = parseInt(tmp[2],10);
  var c = parseInt(tmp[3],10);
  var d = parseInt(tmp[4],10);
  var e = parseInt(tmp[5],10);
  
  var arr_time = [a,b,c,d,e];
    //console.log("arr_time");  
  //console.log(arr_time);  
  
  var min_index = arr_time.indexOf(Math.min.apply(null,arr_time));
    //console.log("min_index");
  //console.log(min_index);
  var bottle_time = Math.ceil(n/arr_time[min_index]);
      //console.log("bottle_time");
  //console.log(bottle_time);
  var kekka = bottle_time + 4;
  
  console.log(kekka);

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