object Main extends App {
  var count = readLong
  var a = List(readLong,readLong,readLong,readLong,readLong)
  if(count % a.min != 0
  println(count / a.min + 6)
  else
     println(count / a.min + 5
}