'use strict'
function main(input) {
  input = input.trim().split('\n')
  let num = input.shift()
  const bottleneck = Math.ceil(num / Math.min(...input))

  console.log(bottleneck + 4)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
