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