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