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

int main()
{
	ll n, a, b, c, d, e;
	cin >> n >> a >> b >> c >> d >> e;

	ll minv = min({ a,b,c,d,e });
	cout << (n + minv - 1) / minv + 4 << endl;
}
