'use strict';
function main(input) {
    const nums = input.split(/\n/).map(s => Number(s));
    const count = nums[0];
    const minTransport = Math.min(...nums.slice(1));
    const res = Math.ceil(count / minTransport) + 4;
    console.log(res);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));