//https://atcoder.jp/contests/abc123/tasks/abc123_c
function setUp(input) {
  input = input.split("\n");
  n = Number(input[0]);
  a = Number(input[1]);
  b = Number(input[2]);
  c = Number(input[3]);
  d = Number(input[4]);
  e = Number(input[5]);
  main();
}
function main() {
  arr = [a, b, c, d, e];
  arr.sort(function (A, B) {
    return A - B;
  });
  var min = arr[0];
  var bottleNeck = 0;
  if (n > min) {
    bottleNeck = Math.floor(n / min);
  }
  console.log(5 + bottleNeck);
}
setUp(require("fs").readFileSync("/dev/stdin", "utf8"));