// inputに入力データ全体が入る
function Main(input) {
    input = input.split(/\r\n|\r|\n/);
    var peaples = input[0];
    const transportNum = 5;

    input = input.map(currentValue => parseInt(currentValue,10));

    //交通手段の最小値
    var bottleNeck = input.reduce((accumulator, currentValue, currentIndex) =>{
      if(currentIndex == 1){
        return currentValue;
      }
      if(accumulator > currentValue){
        return currentValue;
      }else{
        return accumulator;
      }
    });

    //出力
    if(peaples%bottleNeck == 0){
      console.log(Math.floor(peaples/bottleNeck) + transportNum -1);
    }else{
      console.log(Math.floor(peaples/bottleNeck) + transportNum);
    }
  }
  
Main(require("fs").readFileSync("/dev/stdin", "utf8"));