function Main(input) {
  input = input.split("\n");
  var N = parseInt(input[0]);
  var A = ~~input[1];
  var B = ~~input[2];
  var C = ~~input[3];
  var D = ~~input[4];
  var E = ~~input[5];


  var AtCoder = function(N,A,B,C,D,E){
    this.move = [A,B,C,D,E];
    this.memNum = N;
  };

  AtCoder.prototype = {
    procedure: function(){
      return Math.ceil(this.memNum/Math.min(...this.move))+4;
    }
  }
  var atcoder = new AtCoder(N,A,B,C,D,E);
  console.log(atcoder.procedure());
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
