#include <bits/stdc++.h>
using namespace std;

int main() {
    long long N, A, B, C, D, E;
    cin >> N >> A >> B >> C >> D >> E;
    long long X = min({A, B, C, D, E});
    cout << (N + X - 1) / X + 4 << endl;
}