function main(input) {
    const nums = input.split(/\n/).map(s => BigInt(s));
    const count = nums[0];
    const minTransport = nums.reduce((pos, cur) => {
        return pos < cur ? pos : cur;
    }, BigInt(10 ** 10));
    const hasSurplus = count % minTransport > 0;
    const res = count / minTransport + 4n + (hasSurplus ? 1n : 0n);

    console.log(res.toString());
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));