#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main(){
  ll N,A,B,C,D,E;
  cin >> N >> A >> B >> C >> D >> E;
  ll minmove=min({A,B,C,D,E});
  ll ans=(N+minmove-1)/minmove+4;
  cout << ans << endl;
}
